public class LastSecurityFilter
extends org.springframework.web.filter.OncePerRequestFilter
Modifier and Type | Field and Description |
---|---|
protected org.springframework.context.ApplicationEventPublisher |
applicationEventPublisher |
protected RequestLocaleProvider |
localeProvider |
protected TokenMasker |
tokenMasker |
Constructor and Description |
---|
LastSecurityFilter() |
Modifier and Type | Method and Description |
---|---|
protected void |
doFilterInternal(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.FilterChain filterChain) |
protected java.lang.String |
getRequestURL(javax.servlet.http.HttpServletRequest request) |
protected void |
logRequest(javax.servlet.ServletRequest request)
Method logs REST API method invocation
|
protected void |
parseRequestLocale(javax.servlet.ServletRequest request)
Method parses the request locale and sets it to the authentication
|
void |
setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher) |
void |
setLocaleProvider(RequestLocaleProvider localeUtils) |
void |
setTokenMasker(TokenMasker tokenMasker) |
doFilter, doFilterNestedErrorDispatch, getAlreadyFilteredAttributeName, isAsyncDispatch, isAsyncStarted, shouldNotFilter, shouldNotFilterAsyncDispatch, shouldNotFilterErrorDispatch
protected org.springframework.context.ApplicationEventPublisher applicationEventPublisher
protected TokenMasker tokenMasker
protected RequestLocaleProvider localeProvider
public void setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher)
public void setTokenMasker(TokenMasker tokenMasker)
public void setLocaleProvider(RequestLocaleProvider localeUtils)
protected void doFilterInternal(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.FilterChain filterChain) throws java.io.IOException
doFilterInternal
in class org.springframework.web.filter.OncePerRequestFilter
java.io.IOException
protected void logRequest(javax.servlet.ServletRequest request)
protected void parseRequestLocale(javax.servlet.ServletRequest request)
protected java.lang.String getRequestURL(javax.servlet.http.HttpServletRequest request)