类 PassThroughFilterChain
- java.lang.Object
- org.springframework.mock.web.PassThroughFilterChain
- 所有已实现的接口:
FilterChain
public class PassThroughFilterChain extends Object implements FilterChain
Implementation of theFilterConfig
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).- 从以下版本开始:
- 2.0.3
- 作者:
- Juergen Hoeller
- 另请参阅:
Filter
,Servlet
,MockFilterChain
构造器概要
构造器 构造器 说明 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.
构造器详细资料
PassThroughFilterChain
public PassThroughFilterChain(Filter filter, FilterChain nextFilterChain)
Create a new PassThroughFilterChain that delegates to the given Filter, calling it with the given FilterChain.- 参数:
filter
- the Filter to delegate tonextFilterChain
- the FilterChain to use for that next Filter
PassThroughFilterChain
public PassThroughFilterChain(Servlet servlet)
Create a new PassThroughFilterChain that delegates to the given Servlet.- 参数:
servlet
- the Servlet to delegate to
方法详细资料
doFilter
public void doFilter(ServletRequest request, ServletResponse response) throws ServletException, IOException
Pass the call on to the Filter/Servlet.- 指定者:
doFilter
在接口中FilterChain
- 抛出:
ServletException
IOException