public class

PassThroughFilterChain

extends Object
implements FilterChain
java.lang.Object
   ↳ org.springframework.mock.web.PassThroughFilterChain

Class Overview

Implementation of the javax.servlet.FilterConfig interface which simply passes the call through to a given Filter/FilterChain combination (indicating the next Filter in the chain along with the FilterChain that it is supposed to work on) or to a given Servlet (indicating the end of the chain).

See Also

Summary

Public Constructors
PassThroughFilterChain(Filter filter, FilterChain nextFilterChain)
Create a new PassThroughFilterChain that delegates to the given Filter, calling it with the given FilterChain.
PassThroughFilterChain(Servlet servlet)
Create a new PassThroughFilterChain that delegates to the given Servlet.
Public Methods
void doFilter(ServletRequest request, ServletResponse response)
Pass the call on to the Filter/Servlet.
[Expand]
Inherited Methods
From class java.lang.Object
From interface javax.servlet.FilterChain

Public Constructors

public PassThroughFilterChain (Filter filter, FilterChain nextFilterChain)

Create a new PassThroughFilterChain that delegates to the given Filter, calling it with the given FilterChain.

Parameters
filter the Filter to delegate to
nextFilterChain the FilterChain to use for that next Filter

public PassThroughFilterChain (Servlet servlet)

Create a new PassThroughFilterChain that delegates to the given Servlet.

Parameters
servlet the Servlet to delegate to

Public Methods

public void doFilter (ServletRequest request, ServletResponse response)

Pass the call on to the Filter/Servlet.

Throws
IOException
ServletException