public class ApplicationContextHeaderFilter extends OncePerRequestFilter
OncePerRequestFilter
to add an X-Application-Context header that
contains the ApplicationContext ID
.Modifier and Type | Field and Description |
---|---|
static String |
HEADER_NAME
Public constant for X-Application-Context.
|
ALREADY_FILTERED_SUFFIX
logger
Constructor and Description |
---|
ApplicationContextHeaderFilter(ApplicationContext context) |
Modifier and Type | Method and Description |
---|---|
protected void |
doFilterInternal(HttpServletRequest request,
HttpServletResponse response,
FilterChain filterChain) |
doFilter, doFilterNestedErrorDispatch, getAlreadyFilteredAttributeName, isAsyncDispatch, isAsyncStarted, shouldNotFilter, shouldNotFilterAsyncDispatch, shouldNotFilterErrorDispatch
addRequiredProperty, afterPropertiesSet, createEnvironment, destroy, getEnvironment, getFilterConfig, getFilterName, getServletContext, init, initBeanWrapper, initFilterBean, setBeanName, setEnvironment, setServletContext
public static final String HEADER_NAME
public ApplicationContextHeaderFilter(ApplicationContext context)
protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain) throws ServletException, IOException
doFilterInternal
in class OncePerRequestFilter
ServletException
IOException