Package org.apache.catalina.core
Class ApplicationFilterChain
- java.lang.Object
-
- org.apache.catalina.core.ApplicationFilterChain
-
- All Implemented Interfaces:
FilterChain
public final class ApplicationFilterChain extends Object implements FilterChain
Implementation ofjavax.servlet.FilterChainused 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 todoFilter()will execute the servlet'sservice()method itself.- Author:
- Craig R. McClanahan
-
-
Field Summary
Fields Modifier and Type Field Description static intINCREMENT
-
Constructor Summary
Constructors Constructor Description ApplicationFilterChain()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoFilter(ServletRequest request, ServletResponse response)Invoke the next filter in this chain, passing the specified request and response.voidfindNonAsyncFilters(Set<String> result)Identifies the Filters, if any, in this FilterChain that do not support async.static ServletRequestgetLastServicedRequest()The last request passed to a servlet for servicing from the current thread.static ServletResponsegetLastServicedResponse()The last response passed to a servlet for servicing from the current thread.
-
-
-
Field Detail
-
INCREMENT
public static final int INCREMENT
- See Also:
- Constant Field Values
-
-
Method Detail
-
doFilter
public void doFilter(ServletRequest request, ServletResponse response) throws IOException, ServletException
Invoke the next filter in this chain, passing the specified request and response. If there are no more filters in this chain, invoke theservice()method of the servlet itself.- Specified by:
doFilterin interfaceFilterChain- Parameters:
request- The servlet request we are processingresponse- The servlet response we are creating- Throws:
IOException- if an input/output error occursServletException- if a servlet exception occurs
-
getLastServicedRequest
public static ServletRequest getLastServicedRequest()
The last request passed to a servlet for servicing from the current thread.- Returns:
- The last request to be serviced.
-
getLastServicedResponse
public static ServletResponse getLastServicedResponse()
The last response passed to a servlet for servicing from the current thread.- Returns:
- The last response to be serviced.
-
-