public class PassThroughFilterChain extends Object implements FilterChain
FilterConfiginterface 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).
|Constructor and Description|
Create a new PassThroughFilterChain that delegates to the given Filter, calling it with the given FilterChain.
Create a new PassThroughFilterChain that delegates to the given Servlet.
|Modifier and Type||Method and Description|
Pass the call on to the Filter/Servlet.
public PassThroughFilterChain(Filter filter, FilterChain nextFilterChain)
filter- the Filter to delegate to
nextFilterChain- the FilterChain to use for that next Filter
public PassThroughFilterChain(Servlet servlet)
servlet- the Servlet to delegate to
public void doFilter(ServletRequest request, ServletResponse response) throws ServletException, IOException
request- the request to pass along the chain.
response- the response to pass along the chain.
ServletException- if an exception has occurred that interferes with the filterChain's normal operation
IOException- if an I/O related error has occurred during the processing