|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.atmosphere.util.AtmosphereFilterChain
public final class AtmosphereFilterChain
Implementation of 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.
| Field Summary | |
|---|---|
static int |
INCREMENT
|
| Constructor Summary | |
|---|---|
AtmosphereFilterChain()
|
|
| Method Summary | |
|---|---|
void |
addFilter(FilterConfigImpl filterConfig)
Add a filter to the set of filters that will be executed in this chain. |
void |
destroy()
|
void |
doFilter(ServletRequest request,
ServletResponse response)
Invoke the next filter in this chain, passing the specified request and response. |
FilterConfigImpl |
getFilter(int i)
|
Servlet |
getServlet()
|
ServletConfig |
getServletConfig()
|
void |
init()
Initialize the Filter |
void |
invokeFilterChain(ServletRequest request,
ServletResponse response)
|
void |
recycle()
Release references to the filters and configImpl executed by this chain. |
void |
setServlet(ServletConfig configImpl,
Servlet servlet)
Set the servlet that will be executed at the end of this chain. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int INCREMENT
| Constructor Detail |
|---|
public AtmosphereFilterChain()
| Method Detail |
|---|
public void init()
throws ServletException
Filter
ServletException
public void invokeFilterChain(ServletRequest request,
ServletResponse response)
throws IOException,
ServletException
IOException
ServletException
public void doFilter(ServletRequest request,
ServletResponse response)
throws IOException,
ServletException
service() method of the servlet itself.
doFilter in interface FilterChainrequest - The servlet request we are processingresponse - The servlet response we are creating
IOException - if an input/output error occurs
ServletException - if a servlet exception occurspublic void addFilter(FilterConfigImpl filterConfig)
filterConfig - The FilterConfig for the servlet to be executedpublic void recycle()
public void setServlet(ServletConfig configImpl,
Servlet servlet)
public FilterConfigImpl getFilter(int i)
public Servlet getServlet()
public ServletConfig getServletConfig()
public void destroy()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||