public class SecurityFilter
extends org.springframework.web.filter.OncePerRequestFilter
StaleStateProtectionService for more info on purpose and usage.
You can inject excluded Request URI patterns to bypass this filter.
This filter uses the AntPathRequestMatcher which compares a pre-defined ant-style pattern against the URL
(servletPath + pathInfo) of an HttpServletRequest.
This allows you to use wildcard matching as well, for example /** or **AntPathRequestMatcher| Modifier and Type | Field and Description |
|---|---|
protected List<String> |
excludedRequestPatterns |
protected ExploitProtectionService |
exploitProtectionService |
protected static org.apache.commons.logging.Log |
LOG |
protected StaleStateProtectionService |
staleStateProtectionService |
| Constructor and Description |
|---|
SecurityFilter() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doFilterInternal(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.FilterChain filterChain) |
List<String> |
getExcludedRequestPatterns() |
void |
setExcludedRequestPatterns(List<String> excludedRequestPatterns)
This allows you to declaratively set a list of excluded Request Patterns
|
doFilter, doFilterNestedErrorDispatch, getAlreadyFilteredAttributeName, isAsyncDispatch, isAsyncStarted, shouldNotFilter, shouldNotFilterAsyncDispatch, shouldNotFilterErrorDispatchprotected static final org.apache.commons.logging.Log LOG
@Autowired @Qualifier(value="blStaleStateProtectionService") protected StaleStateProtectionService staleStateProtectionService
@Autowired @Qualifier(value="blExploitProtectionService") protected ExploitProtectionService exploitProtectionService
protected void doFilterInternal(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.FilterChain filterChain)
throws javax.servlet.ServletException,
IOException
doFilterInternal in class org.springframework.web.filter.OncePerRequestFilterjavax.servlet.ServletExceptionIOExceptionCopyright © 2020. All rights reserved.