Package hudson.security
Class ChainedServletFilter2
java.lang.Object
hudson.security.ChainedServletFilter2
- All Implemented Interfaces:
jakarta.servlet.Filter
Servlet
Filter
that chains multiple Filter
s.- Author:
- Kohsuke Kawaguchi
-
Field Summary
-
Constructor Summary
ConstructorDescriptionChainedServletFilter2
(jakarta.servlet.Filter... filters) ChainedServletFilter2
(Collection<? extends jakarta.servlet.Filter> filters) -
Method Summary
Modifier and TypeMethodDescriptionvoid
destroy()
void
doFilter
(jakarta.servlet.ServletRequest request, jakarta.servlet.ServletResponse response, jakarta.servlet.FilterChain chain) void
init
(jakarta.servlet.FilterConfig filterConfig) void
setFilters
(Collection<? extends jakarta.servlet.Filter> filters)
-
Field Details
-
filters
protected volatile jakarta.servlet.Filter[] filters
-
-
Constructor Details
-
ChainedServletFilter2
public ChainedServletFilter2() -
ChainedServletFilter2
public ChainedServletFilter2(jakarta.servlet.Filter... filters) -
ChainedServletFilter2
-
-
Method Details
-
setFilters
-
init
public void init(jakarta.servlet.FilterConfig filterConfig) throws jakarta.servlet.ServletException - Specified by:
init
in interfacejakarta.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 interfacejakarta.servlet.Filter
- Throws:
IOException
jakarta.servlet.ServletException
-
destroy
public void destroy()- Specified by:
destroy
in interfacejakarta.servlet.Filter
-