Package com.atlassian.confluence.util
Class ClusterHeaderFilter
- java.lang.Object
-
- com.atlassian.core.filters.AbstractHttpFilter
-
- com.atlassian.confluence.util.ClusterHeaderFilter
-
- All Implemented Interfaces:
javax.servlet.Filter
public class ClusterHeaderFilter extends com.atlassian.core.filters.AbstractHttpFilter
If clustering is enabled, adds a custom HTTP header (ResponseHeaderNames.CLUSTER_NODE_IDENTIFIER
}) to the response to indicate which node is handling the request.
-
-
Constructor Summary
Constructors Constructor Description ClusterHeaderFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doFilter(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.FilterChain filterChain)
-
-
-
Method Detail
-
doFilter
protected void doFilter(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.FilterChain filterChain) throws IOException, javax.servlet.ServletException
- Specified by:
doFilter
in classcom.atlassian.core.filters.AbstractHttpFilter
- Throws:
IOException
javax.servlet.ServletException
-
-