public class PassThroughFilterChain extends Object implements javax.servlet.FilterChain
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).Filter
,
Servlet
,
MockFilterChain
Constructor and Description |
---|
PassThroughFilterChain(javax.servlet.Filter filter,
javax.servlet.FilterChain nextFilterChain)
Create a new PassThroughFilterChain that delegates to the given Filter,
calling it with the given FilterChain.
|
PassThroughFilterChain(javax.servlet.Servlet servlet)
Create a new PassThroughFilterChain that delegates to the given Servlet.
|
Modifier and Type | Method and Description |
---|---|
void |
doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response)
Pass the call on to the Filter/Servlet.
|
public PassThroughFilterChain(javax.servlet.Filter filter, javax.servlet.FilterChain nextFilterChain)
filter
- the Filter to delegate tonextFilterChain
- the FilterChain to use for that next Filterpublic PassThroughFilterChain(javax.servlet.Servlet servlet)
servlet
- the Servlet to delegate topublic void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response) throws javax.servlet.ServletException, IOException
doFilter
in interface javax.servlet.FilterChain
javax.servlet.ServletException
IOException
Copyright © 2015. All rights reserved.