public class DelegateServletFilter extends Object implements javax.servlet.Filter
DelegateServletFilter
is meant to detect any SecurityFilter
s and doFilter through
those before continuing on its FilterChain
. If no SecurityFilter
s are found, it
becomes a pass-through filter.Constructor and Description |
---|
DelegateServletFilter() |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
void |
doFilter(javax.servlet.ServletRequest servletRequest,
javax.servlet.ServletResponse servletResponse,
javax.servlet.FilterChain filterChain) |
void |
init(javax.servlet.FilterConfig filterConfig) |
void |
removeSecurityFilter(org.osgi.framework.ServiceReference<SecurityFilter> securityFilterServiceReference) |
public void init(javax.servlet.FilterConfig filterConfig) throws javax.servlet.ServletException
init
in interface javax.servlet.Filter
javax.servlet.ServletException
public void destroy()
destroy
in interface javax.servlet.Filter
public void doFilter(javax.servlet.ServletRequest servletRequest, javax.servlet.ServletResponse servletResponse, javax.servlet.FilterChain filterChain) throws IOException, javax.servlet.ServletException
doFilter
in interface javax.servlet.Filter
IOException
javax.servlet.ServletException
public void removeSecurityFilter(org.osgi.framework.ServiceReference<SecurityFilter> securityFilterServiceReference)
This work is licensed under a Creative Commons Attribution 4.0 International License.