public class HaMasterCheckFilter
extends java.lang.Object
implements javax.servlet.Filter
Post POSTs and PUTs are assumed to need master state, with the exception of shutdown.
Requests with SKIP_CHECK_HEADER
set as a header skip this check.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SKIP_CHECK_HEADER |
Constructor and Description |
---|
HaMasterCheckFilter() |
public static final java.lang.String SKIP_CHECK_HEADER
public void init(javax.servlet.FilterConfig config) throws javax.servlet.ServletException
init
in interface javax.servlet.Filter
javax.servlet.ServletException
public void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain) throws java.io.IOException, javax.servlet.ServletException
doFilter
in interface javax.servlet.Filter
java.io.IOException
javax.servlet.ServletException
public void destroy()
destroy
in interface javax.servlet.Filter