public final class AtmosphereFilterChain
extends java.lang.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
Filterjavax.servlet.ServletExceptionpublic void invokeFilterChain(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response)
throws java.io.IOException,
javax.servlet.ServletException
java.io.IOExceptionjavax.servlet.ServletExceptionpublic void doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response)
throws java.io.IOException,
javax.servlet.ServletException
service() method of the servlet itself.doFilter in interface javax.servlet.FilterChainrequest - The servlet request we are processingresponse - The servlet response we are creatingjava.io.IOException - 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 © 2017. All Rights Reserved.