public class ApplicationContextHeaderFilter
extends org.springframework.web.filter.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.
|
Constructor and Description |
---|
ApplicationContextHeaderFilter(org.springframework.context.ApplicationContext context) |
Modifier and Type | Method and Description |
---|---|
protected void |
doFilterInternal(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.FilterChain filterChain) |
doFilter, getAlreadyFilteredAttributeName, isAsyncDispatch, isAsyncStarted, shouldNotFilter, shouldNotFilterAsyncDispatch, shouldNotFilterErrorDispatch
public static final String HEADER_NAME
public ApplicationContextHeaderFilter(org.springframework.context.ApplicationContext context)
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.OncePerRequestFilter
javax.servlet.ServletException
IOException
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.