|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.grizzly.http.servlet.FilterChainImpl
public final class FilterChainImpl
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 | |
---|---|
FilterChainImpl()
|
Method Summary | |
---|---|
void |
addFilter(FilterConfigImpl filterConfig)
Add a filter to the set of filters that will be executed in this chain. |
void |
doFilter(ServletRequest request,
ServletResponse response)
Invoke the next filter in this chain, passing the specified request and response. |
FilterConfigImpl |
getFilter(int i)
|
int |
getPos()
|
Servlet |
getServlet()
|
ServletConfigImpl |
getServletConfig()
|
int |
getSize()
|
void |
recycle()
Release references to the filters and wrapper executed by this chain. |
void |
setServlet(ServletConfigImpl wrapper,
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 FilterChainImpl()
Method Detail |
---|
public void doFilter(ServletRequest request, ServletResponse response) throws IOException, ServletException
service()
method of the servlet itself.
doFilter
in interface FilterChain
request
- 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(ServletConfigImpl wrapper, Servlet servlet)
public int getSize()
public FilterConfigImpl getFilter(int i)
public Servlet getServlet()
public ServletConfigImpl getServletConfig()
public int getPos()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |