当前位置: 首页>>代码示例>>Java>>正文


Java HttpServletRequestWrapperFilter类代码示例

本文整理汇总了Java中org.jasig.cas.client.util.HttpServletRequestWrapperFilter的典型用法代码示例。如果您正苦于以下问题:Java HttpServletRequestWrapperFilter类的具体用法?Java HttpServletRequestWrapperFilter怎么用?Java HttpServletRequestWrapperFilter使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


HttpServletRequestWrapperFilter类属于org.jasig.cas.client.util包,在下文中一共展示了HttpServletRequestWrapperFilter类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: init

import org.jasig.cas.client.util.HttpServletRequestWrapperFilter; //导入依赖的package包/类
public void init(FilterConfig filterConfig) throws ServletException {
		String casServerLoginUrl = "http://sso.jadyer.com:8080/cas-server-web/login";
		String casServerUrlPrefix = "http://sso.jadyer.com:8080/cas-server-web";
		String casClientServerName = "http://boss.jadyer.com:8080";
		AuthenticationFilter casAuthenticationFilter = new AuthenticationFilter();
		casAuthenticationFilter.setCasServerLoginUrl(casServerLoginUrl);
		casAuthenticationFilter.setServerName(casClientServerName);
		Cas20ProxyReceivingTicketValidationFilter casTicketValidationFilter = new Cas20ProxyReceivingTicketValidationFilter();
		casTicketValidationFilter.setServerName(casClientServerName);
		casTicketValidationFilter.setTicketValidator(new Cas20ServiceTicketValidator(casServerUrlPrefix));
		filters[0] = new SingleSignOutFilter();
//		filters[1] = new AuthenticationFilter();
//		filters[2] = new Cas20ProxyReceivingTicketValidationFilter();
		filters[1] = casAuthenticationFilter;
		filters[2] = casTicketValidationFilter;
		filters[3] = new HttpServletRequestWrapperFilter();
		filters[4] = new AssertionThreadLocalFilter();
		for(Filter obj : filters){
			System.out.println("[复合Filter]-->Initializing Filter defined in ApplicationContext: '" + obj.toString() + "'");
			obj.init(filterConfig);
		}
	}
 
开发者ID:v5java,项目名称:demo-cas-client,代码行数:23,代码来源:MSCompositeFilter.java

示例2: casHttpServletRequestWrapperFilter

import org.jasig.cas.client.util.HttpServletRequestWrapperFilter; //导入依赖的package包/类
@Bean
public FilterRegistrationBean casHttpServletRequestWrapperFilter() {
    final FilterRegistrationBean reqWrapperFilter = new FilterRegistrationBean();
    reqWrapperFilter.setFilter(new HttpServletRequestWrapperFilter());
    if (this.configProps.getRequestWrapperUrlPatterns().size() > 0) {
        reqWrapperFilter.setUrlPatterns(this.configProps.getRequestWrapperUrlPatterns());
    }
    reqWrapperFilter.setOrder(3);

    if (this.casClientConfigurer != null) {
        this.casClientConfigurer.configureHttpServletRequestWrapperFilter(reqWrapperFilter);
    }
    return reqWrapperFilter;
}
 
开发者ID:Unicon,项目名称:cas-client-autoconfig-support,代码行数:15,代码来源:CasClientConfiguration.java


注:本文中的org.jasig.cas.client.util.HttpServletRequestWrapperFilter类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。