Java 类org.springframework.security.web.firewall.DefaultHttpFirewall 实例源码

项目:para    文件:SecurityConfig.java   
/**
 * Configures the unsecured public resources.
 *
 * @param web web sec object
 * @throws Exception ex
 */
@Override
public void configure(WebSecurity web) throws Exception {
    web.ignoring().requestMatchers(IgnoredRequestMatcher.INSTANCE);
    DefaultHttpFirewall firewall = new DefaultHttpFirewall();
    firewall.setAllowUrlEncodedSlash(true);
    web.httpFirewall(firewall);
    //web.debug(true);
}
项目:IdentityRegistry    文件:MultiSecurityConfig.java   
@Bean
public HttpFirewall allowUrlEncodedSlashHttpFirewall() {
    DefaultHttpFirewall firewall = new DefaultHttpFirewall();
    firewall.setAllowUrlEncodedSlash(true);
    return firewall;
}
项目:flowable-engine    文件:SecurityConfiguration.java   
@Bean
public HttpFirewall defaultFireWall() {
    DefaultHttpFirewall firewall = new DefaultHttpFirewall();
    firewall.setAllowUrlEncodedSlash(true);
    return firewall;
}