Class ChainedServletFilter2

java.lang.Object
hudson.security.ChainedServletFilter2
All Implemented Interfaces:
jakarta.servlet.Filter

public class ChainedServletFilter2 extends Object implements jakarta.servlet.Filter
Servlet Filter that chains multiple Filters.
Author:
Kohsuke Kawaguchi
  • Field Details

    • filters

      protected volatile jakarta.servlet.Filter[] filters
  • Constructor Details

    • ChainedServletFilter2

      public ChainedServletFilter2()
    • ChainedServletFilter2

      public ChainedServletFilter2(jakarta.servlet.Filter... filters)
    • ChainedServletFilter2

      public ChainedServletFilter2(Collection<? extends jakarta.servlet.Filter> filters)
  • Method Details

    • setFilters

      public void setFilters(Collection<? extends jakarta.servlet.Filter> filters)
    • init

      public void init(jakarta.servlet.FilterConfig filterConfig) throws jakarta.servlet.ServletException
      Specified by:
      init in interface jakarta.servlet.Filter
      Throws:
      jakarta.servlet.ServletException
    • doFilter

      public void doFilter(jakarta.servlet.ServletRequest request, jakarta.servlet.ServletResponse response, jakarta.servlet.FilterChain chain) throws IOException, jakarta.servlet.ServletException
      Specified by:
      doFilter in interface jakarta.servlet.Filter
      Throws:
      IOException
      jakarta.servlet.ServletException
    • destroy

      public void destroy()
      Specified by:
      destroy in interface jakarta.servlet.Filter