public final class ApplicationFilterChain extends java.lang.Object implements HttpEventFilterChain
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 |
---|
ApplicationFilterChain()
Construct a new chain instance with no defined filters.
|
Modifier and Type | Method and Description |
---|---|
void |
doFilter(ServletRequest request,
ServletResponse response)
Invoke the next filter in this chain, passing the specified request
and response.
|
void |
doFilterEvent(HttpEvent event)
Invoke the next filter in this chain, passing the specified request
and response.
|
int |
getFilterCount() |
ApplicationFilterConfig[] |
getFilters() |
static ServletRequest |
getLastServicedRequest()
The last request passed to a servlet for servicing from the current
thread.
|
static ServletResponse |
getLastServicedResponse()
The last response passed to a servlet for servicing from the current
thread.
|
int |
getPointer() |
Servlet |
getServlet() |
Wrapper |
getWrapper() |
public static final int INCREMENT
public ApplicationFilterChain()
public void doFilter(ServletRequest request, ServletResponse response) throws java.io.IOException, ServletException
service()
method of the servlet itself.request
- The servlet request we are processingresponse
- The servlet response we are creatingjava.io.IOException
- if an input/output error occursServletException
- if a servlet exception occurspublic void doFilterEvent(HttpEvent event) throws java.io.IOException, ServletException
service()
method of the servlet itself.doFilterEvent
in interface HttpEventFilterChain
request
- The servlet request we are processingresponse
- The servlet response we are creatingjava.io.IOException
- if an input/output error occursServletException
- if a servlet exception occurspublic static ServletRequest getLastServicedRequest()
public static ServletResponse getLastServicedResponse()
public ApplicationFilterConfig[] getFilters()
public int getFilterCount()
public int getPointer()
public Wrapper getWrapper()
public Servlet getServlet()