|
|||||||||
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 | |
---|---|
protected 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. |
protected FilterConfigImpl |
getFilter(int i)
|
protected Servlet |
getServlet()
|
protected ServletConfigImpl |
getServletConfig()
|
protected void |
init()
Initialize the Filter |
protected void |
invokeFilterChain(ServletRequest request,
ServletResponse response)
|
protected void |
recycle()
Release references to the filters and configImpl executed by this chain. |
protected void |
setServlet(ServletConfigImpl 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 FilterChainImpl()
Method Detail |
---|
protected void init() throws ServletException
Filter
ServletException
protected 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 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 occursprotected void addFilter(FilterConfigImpl filterConfig)
filterConfig
- The FilterConfig for the servlet to be executedprotected void recycle()
protected void setServlet(ServletConfigImpl configImpl, Servlet servlet)
protected FilterConfigImpl getFilter(int i)
protected Servlet getServlet()
protected ServletConfigImpl getServletConfig()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |