com.atlassian.confluence.util
Class ClusterHeaderFilter
java.lang.Object
com.atlassian.confluence.util.ClusterHeaderFilter
- All Implemented Interfaces:
- Filter
public class ClusterHeaderFilter
- extends Object
- implements Filter
If clustering is enabled, adds a custom HTTP header (X-Confluence-Cluster-Node)
to the response to indicate which node is handling the request.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClusterHeaderFilter
public ClusterHeaderFilter()
init
public void init(FilterConfig filterConfig)
throws ServletException
- Specified by:
init in interface Filter
- Throws:
ServletException
doFilter
public void doFilter(ServletRequest servletRequest,
ServletResponse servletResponse,
FilterChain chain)
throws IOException,
ServletException
- Specified by:
doFilter in interface Filter
- Throws:
IOException
ServletException
destroy
public void destroy()
- Specified by:
destroy in interface Filter