public final class AtmosphereFilterChain extends Object implements javax.servlet.FilterChain
javax.servlet.FilterChain
used to manage
the execution of a set of filters for a particular request. When the
set of defined filters has all been executed, the next call to
doFilter()
will execute the servlet's service()
method itself.Modifier and Type | Field and Description |
---|---|
static int |
INCREMENT |
Constructor and Description |
---|
AtmosphereFilterChain() |
Modifier and Type | Method and Description |
---|---|
void |
addFilter(FilterConfigImpl filterConfig)
Add a filter to the set of filters that will be executed in this chain.
|
void |
destroy() |
void |
doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response)
Invoke the next filter in this chain, passing the specified request
and response.
|
FilterConfigImpl |
getFilter(int i) |
javax.servlet.Servlet |
getServlet() |
javax.servlet.ServletConfig |
getServletConfig() |
void |
init()
Initialize the
Filter |
void |
invokeFilterChain(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response) |
void |
setServlet(javax.servlet.ServletConfig configImpl,
javax.servlet.Servlet servlet)
Set the servlet that will be executed at the end of this chain.
|
public static final int INCREMENT
public void init() throws javax.servlet.ServletException
Filter
javax.servlet.ServletException
public void invokeFilterChain(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response) throws IOException, javax.servlet.ServletException
IOException
javax.servlet.ServletException
public void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response) throws IOException, javax.servlet.ServletException
service()
method of the servlet itself.doFilter
in interface javax.servlet.FilterChain
request
- The servlet request we are processingresponse
- The servlet response we are creatingIOException
- if an input/output error occursjavax.servlet.ServletException
- if a servlet exception occurspublic void addFilter(FilterConfigImpl filterConfig)
filterConfig
- The FilterConfig for the servlet to be executedpublic void setServlet(javax.servlet.ServletConfig configImpl, javax.servlet.Servlet servlet)
public FilterConfigImpl getFilter(int i)
public javax.servlet.Servlet getServlet()
public javax.servlet.ServletConfig getServletConfig()
public void destroy()
Copyright © 2016. All rights reserved.