类 PassThroughFilterChain

java.lang.Object
cn.taketoday.mock.web.PassThroughFilterChain
所有已实现的接口:
jakarta.servlet.FilterChain

public class PassThroughFilterChain extends Object implements 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
另请参阅:
  • 字段概要

    字段
    修饰符和类型
    字段
    说明
    private jakarta.servlet.Filter
     
    private jakarta.servlet.FilterChain
     
    private 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.
  • 方法概要

    修饰符和类型
    方法
    说明
    void
    doFilter(jakarta.servlet.ServletRequest request, jakarta.servlet.ServletResponse response)
    Pass the call on to the Filter/Servlet.

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 字段详细资料

    • 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 to
      nextFilterChain - 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.ServletException
      IOException