Package hudson.security
Class ChainedServletFilter
- java.lang.Object
-
- hudson.security.ChainedServletFilter
-
- All Implemented Interfaces:
javax.servlet.Filter
public class ChainedServletFilter extends Object implements javax.servlet.Filter
ServletFilter
that chains multipleFilter
s.- Author:
- Kohsuke Kawaguchi
-
-
Field Summary
Fields Modifier and Type Field Description protected javax.servlet.Filter[]
filters
-
Constructor Summary
Constructors Constructor Description ChainedServletFilter()
ChainedServletFilter(Collection<? extends javax.servlet.Filter> filters)
ChainedServletFilter(javax.servlet.Filter... filters)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
destroy()
void
doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain)
void
init(javax.servlet.FilterConfig filterConfig)
void
setFilters(Collection<? extends javax.servlet.Filter> filters)
-
-
-
Constructor Detail
-
ChainedServletFilter
public ChainedServletFilter()
-
ChainedServletFilter
public ChainedServletFilter(javax.servlet.Filter... filters)
-
ChainedServletFilter
public ChainedServletFilter(Collection<? extends javax.servlet.Filter> filters)
-
-
Method Detail
-
setFilters
public void setFilters(Collection<? extends javax.servlet.Filter> filters)
-
init
public void init(javax.servlet.FilterConfig filterConfig) throws javax.servlet.ServletException
- Specified by:
init
in interfacejavax.servlet.Filter
- Throws:
javax.servlet.ServletException
-
doFilter
public void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain) throws IOException, javax.servlet.ServletException
- Specified by:
doFilter
in interfacejavax.servlet.Filter
- Throws:
IOException
javax.servlet.ServletException
-
destroy
public void destroy()
- Specified by:
destroy
in interfacejavax.servlet.Filter
-
-