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(HttpServletRequest request,
HttpServletResponse response,
FilterChain filterChain) |
doFilter, doFilterNestedErrorDispatch, getAlreadyFilteredAttributeName, isAsyncDispatch, isAsyncStarted, shouldNotFilter, shouldNotFilterAsyncDispatch, shouldNotFilterErrorDispatch
public static final String HEADER_NAME
public ApplicationContextHeaderFilter(org.springframework.context.ApplicationContext context)
protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain) throws ServletException, IOException
doFilterInternal
in class org.springframework.web.filter.OncePerRequestFilter
ServletException
IOException
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.