public abstract class AbstractLoggingContextFilter
extends org.springframework.web.filter.OncePerRequestFilter
| Constructor and Description |
|---|
AbstractLoggingContextFilter() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doFilterInternal(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.FilterChain filterChain) |
protected abstract String |
getEndpointsPrefix()
Returns prefix used for all endpoints that should trigger this filter.
|
protected boolean |
shouldNotFilter(javax.servlet.http.HttpServletRequest request) |
doFilter, doFilterNestedErrorDispatch, getAlreadyFilteredAttributeName, isAsyncDispatch, isAsyncStarted, shouldNotFilterAsyncDispatch, shouldNotFilterErrorDispatchprotected 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.ServletExceptionIOExceptionprotected boolean shouldNotFilter(javax.servlet.http.HttpServletRequest request)
shouldNotFilter in class org.springframework.web.filter.OncePerRequestFilterprotected abstract String getEndpointsPrefix()
If requested path doesn't start with the specified prefix, this filter will be skipped.
Copyright © 2020. All rights reserved.