Example usage for org.springframework.security.web.firewall StrictHttpFirewall setAllowUrlEncodedSlash

List of usage examples for org.springframework.security.web.firewall StrictHttpFirewall setAllowUrlEncodedSlash

Introduction

In this page you can find the example usage for org.springframework.security.web.firewall StrictHttpFirewall setAllowUrlEncodedSlash.

Prototype

public void setAllowUrlEncodedSlash(boolean allowUrlEncodedSlash) 

Source Link

Document

Determines if a slash "/" that is URL encoded "%2F" should be allowed in the path or not.

Usage

From source file:org.devgateway.toolkit.web.spring.WebSecurityConfig.java

@Bean
public HttpFirewall allowUrlEncodedSlashHttpFirewall() {
    StrictHttpFirewall firewall = new StrictHttpFirewall();
    firewall.setAllowUrlEncodedSlash(true);
    firewall.setAllowSemicolon(true);//  w w  w.j  a  va2  s  .c  o m
    return firewall;
}