本文整理汇总了Java中com.alibaba.citrus.turbine.TurbineRunData.setRedirectLocation方法的典型用法代码示例。如果您正苦于以下问题:Java TurbineRunData.setRedirectLocation方法的具体用法?Java TurbineRunData.setRedirectLocation怎么用?Java TurbineRunData.setRedirectLocation使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.alibaba.citrus.turbine.TurbineRunData
的用法示例。
在下文中一共展示了TurbineRunData.setRedirectLocation方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: redirectToNoRight
import com.alibaba.citrus.turbine.TurbineRunData; //导入方法依赖的package包/类
/**
* 无权限跳转
* @param rundata
*/
private void redirectToNoRight(TurbineRunData rundata) {
if(logger.isInfoEnabled()) {
logger.info("No right to access: " + request.getRequestURI());
}
rundata.getParameters().setString("returnURL1", (String)rundata.getRequest().getAttribute("returnURL"));
rundata.setRedirectLocation("http://localhost:8080/governance/noServicePrivilege?returnURL="+rundata.getRequest().getAttribute("returnURL"));
return;
}
示例2: redirect
import com.alibaba.citrus.turbine.TurbineRunData; //导入方法依赖的package包/类
private void redirect(PipelineContext pipelineContext, TurbineRunData rundata, String uriBroker) {
URIBroker urlBroker = assertNotNull(uriBrokerService.getURIBroker(uriBroker),
"uriBroker get from loginLink should not be null");
urlBroker.addQueryData(redirectParmeter, getRequestUrlWithQueryString());
rundata.setRedirectLocation(urlBroker.render());
pipelineContext.breakPipeline(Pipeline.TOP_LABEL);
}
示例3: redirectToNoRight
import com.alibaba.citrus.turbine.TurbineRunData; //导入方法依赖的package包/类
/**
* 无权限跳转
* @param rundata
*/
private void redirectToNoRight(TurbineRunData rundata) {
if (logger.isInfoEnabled()) {
logger.info("No right to access: " + request.getRequestURI());
}
rundata.getParameters().setString("returnURL1", (String) rundata.getRequest().getAttribute("returnURL"));
rundata.setRedirectLocation("http://localhost:8080/governance/noServicePrivilege?returnURL=" + rundata.getRequest().getAttribute("returnURL"));
return;
}
示例4: redirect
import com.alibaba.citrus.turbine.TurbineRunData; //导入方法依赖的package包/类
private void redirect(PipelineContext pipelineContext, TurbineRunData rundata, String uriBroker) {
URIBroker urlBroker = assertNotNull(uriBrokerService.getURIBroker(uriBroker),
"uriBroker get from loginLink should not be null");
urlBroker.addQueryData(redirectParmeter, getRequestUrlWithQueryString());
rundata.setRedirectLocation(urlBroker.render());
pipelineContext.breakPipeline(Pipeline.TOP_LABEL);
}