Class ChainingFilter
java.lang.Object
net.shibboleth.shared.spring.servlet.impl.ChainingFilter
- All Implemented Interfaces:
Filter
Implementation of
Filter that encapsulates and runs a chain of embedded filters in a defined
order.
This is provided to deal with the problem of filter order when programmatic registration is done. Good or bad, some filters are order-sensitive and wishing that wasn't true doesn't change it.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()voiddoFilter(ServletRequest request, ServletResponse response, FilterChain chain) voidinit(FilterConfig filterConfig)
-
Field Details
-
filters
Embedded chain.
-
-
Constructor Details
-
ChainingFilter
Constructor.- Parameters:
filterChain- auto-wired chain of filters to run
-
-
Method Details
-
init
- Specified by:
initin interfaceFilter- Throws:
ServletException
-
destroy
public void destroy() -
doFilter
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException - Specified by:
doFilterin interfaceFilter- Throws:
IOExceptionServletException
-