public class SecurityFilter
extends org.springframework.web.filter.GenericFilterBean
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 |
|---|---|
void |
doFilter(javax.servlet.ServletRequest baseRequest,
javax.servlet.ServletResponse baseResponse,
javax.servlet.FilterChain chain) |
List<String> |
getExcludedRequestPatterns() |
void |
setExcludedRequestPatterns(List<String> excludedRequestPatterns)
This allows you to declaratively set a list of excluded Request Patterns
|
protected static final org.apache.commons.logging.Log LOG
protected StaleStateProtectionService staleStateProtectionService
protected ExploitProtectionService exploitProtectionService
public void doFilter(javax.servlet.ServletRequest baseRequest,
javax.servlet.ServletResponse baseResponse,
javax.servlet.FilterChain chain)
throws IOException,
javax.servlet.ServletException
IOExceptionjavax.servlet.ServletExceptionCopyright © 2018. All rights reserved.