Class IteratingFilterChain
java.lang.Object
com.atlassian.plugin.servlet.filter.IteratingFilterChain
- All Implemented Interfaces:
javax.servlet.FilterChain
This FilterChain passes control from the first Filter in an iterator to the last. When the last iterator
calls the chain.doFilter(request, response) method, the supplied "parent" chain has control returned to it.
- Since:
- 2.1.0
-
Constructor Summary
ConstructorsConstructorDescriptionIteratingFilterChain(Iterator<javax.servlet.Filter> iterator, javax.servlet.FilterChain chain) Create a new IteratingFilterChain which iterates over the Filters in the supplied Iterator and then returns control to the main FilterChain. -
Method Summary
Modifier and TypeMethodDescriptionvoiddoFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response)
-
Constructor Details
-
IteratingFilterChain
public IteratingFilterChain(Iterator<javax.servlet.Filter> iterator, javax.servlet.FilterChain chain) Create a new IteratingFilterChain which iterates over the Filters in the supplied Iterator and then returns control to the main FilterChain.- Parameters:
iterator- Iterator over the Filters to applychain- FilterChain to return control to after the last Filter in the iterator has called the chain.doFilter(request, response) method.
-
-
Method Details
-
doFilter
public void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response) throws IOException, javax.servlet.ServletException - Specified by:
doFilterin interfacejavax.servlet.FilterChain- Throws:
IOExceptionjavax.servlet.ServletException
-