public final class

IteratingFilterChain

extends Object
implements FilterChain
java.lang.Object
   ↳ com.atlassian.plugin.servlet.filter.IteratingFilterChain

Class Overview

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.

Summary

Public Constructors
IteratingFilterChain(Iterator<Filter> iterator, FilterChain chain)
Create a new IteratingFilterChain which iterates over the Filters in the supplied Iterator and then returns control to the main FilterChain.
Public Methods
void doFilter(ServletRequest request, ServletResponse response)
[Expand]
Inherited Methods
From class java.lang.Object
From interface javax.servlet.FilterChain

Public Constructors

public IteratingFilterChain (Iterator<Filter> iterator, 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 apply
chain FilterChain to return control to after the last Filter in the iterator has called the chain.doFilter(request, response) method.

Public Methods

public void doFilter (ServletRequest request, ServletResponse response)

Throws
IOException
ServletException