spring-framework / org.springframework.mock.web / PassThroughFilterChain

PassThroughFilterChain

open class PassThroughFilterChain : FilterChain

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).

Author
Juergen Hoeller

Since
2.0.3

See Also
javax.servlet.Filterjavax.servlet.ServletMockFilterChain

Constructors

<init>

PassThroughFilterChain(filter: Filter, nextFilterChain: FilterChain)

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.

Functions

doFilter

open fun doFilter(request: ServletRequest, response: ServletResponse): Unit

Pass the call on to the Filter/Servlet.