类 PassThroughFilterChain
java.lang.Object
cn.taketoday.mock.web.PassThroughFilterChain
- 所有已实现的接口:
jakarta.servlet.FilterChain
Implementation of the
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).- 从以下版本开始:
- 4.0
- 作者:
- Juergen Hoeller
- 另请参阅:
-
FilterServletMockFilterChain
-
字段概要
字段修饰符和类型字段说明private jakarta.servlet.Filterprivate jakarta.servlet.FilterChainprivate jakarta.servlet.Servlet -
构造器概要
构造器构造器说明PassThroughFilterChain(jakarta.servlet.Filter filter, jakarta.servlet.FilterChain nextFilterChain) Create a new PassThroughFilterChain that delegates to the given Filter, calling it with the given FilterChain.PassThroughFilterChain(jakarta.servlet.Servlet servlet) Create a new PassThroughFilterChain that delegates to the given Servlet. -
方法概要
修饰符和类型方法说明voiddoFilter(jakarta.servlet.ServletRequest request, jakarta.servlet.ServletResponse response) Pass the call on to the Filter/Servlet.
-
字段详细资料
-
filter
@Nullable private jakarta.servlet.Filter filter -
nextFilterChain
@Nullable private jakarta.servlet.FilterChain nextFilterChain -
servlet
@Nullable private jakarta.servlet.Servlet servlet
-
-
构造器详细资料
-
PassThroughFilterChain
public PassThroughFilterChain(jakarta.servlet.Filter filter, jakarta.servlet.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(jakarta.servlet.Servlet servlet) Create a new PassThroughFilterChain that delegates to the given Servlet.- 参数:
servlet- the Servlet to delegate to
-
-
方法详细资料
-
doFilter
public void doFilter(jakarta.servlet.ServletRequest request, jakarta.servlet.ServletResponse response) throws jakarta.servlet.ServletException, IOException Pass the call on to the Filter/Servlet.- 指定者:
doFilter在接口中jakarta.servlet.FilterChain- 抛出:
jakarta.servlet.ServletExceptionIOException
-