Package org.apache.catalina.core
Class ApplicationFilterChain
java.lang.Object
org.apache.catalina.core.ApplicationFilterChain
- All Implemented Interfaces:
- FilterChain
Implementation of 
jakarta.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.- Author:
- Craig R. McClanahan
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoiddoFilter(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 ServletRequestThe last request passed to a servlet for servicing from the current thread.static ServletResponseThe last response passed to a servlet for servicing from the current thread.
- 
Field Details- 
INCREMENTpublic static final int INCREMENT- See Also:
 
 
- 
- 
Constructor Details- 
ApplicationFilterChainpublic ApplicationFilterChain()
 
- 
- 
Method Details- 
doFilterpublic 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 interface- FilterChain
- Parameters:
- request- The servlet request we are processing
- response- The servlet response we are creating
- Throws:
- IOException- if an input/output error occurs
- ServletException- if a servlet exception occurs
 
- 
getLastServicedRequestThe last request passed to a servlet for servicing from the current thread.- Returns:
- The last request to be serviced.
 
- 
getLastServicedResponseThe last response passed to a servlet for servicing from the current thread.- Returns:
- The last response to be serviced.
 
- 
findNonAsyncFiltersIdentifies the Filters, if any, in this FilterChain that do not support async.- Parameters:
- result- The Set to which the fully qualified class names of each Filter in this FilterChain that does not support async will be added
 
 
-