Class RequestResponseContextFilter
java.lang.Object
net.shibboleth.shared.servlet.AbstractConditionalFilter
net.shibboleth.shared.spring.servlet.impl.RequestResponseContextFilter
- All Implemented Interfaces:
Filter,ChainableFilter,Ordered
public class RequestResponseContextFilter
extends AbstractConditionalFilter
implements ChainableFilter
Implementation of
Filter which stores the current HttpServletRequest and
HttpServletResponse being serviced on thread-local storage via the use of holder class
HttpServletRequestResponseContext.-
Nested Class Summary
Nested classes/interfaces inherited from interface net.shibboleth.shared.spring.servlet.ChainableFilter
ChainableFilter.FilterOrder -
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()intgetOrder()voidinit(FilterConfig filterConfig) protected voidrunFilter(ServletRequest request, ServletResponse response, FilterChain chain) Subclasses should override this method to be called when the filter is directed to activate.Methods inherited from class net.shibboleth.shared.servlet.AbstractConditionalFilter
doFilter, getActivationCondition, setActivationCondition
-
Constructor Details
-
RequestResponseContextFilter
public RequestResponseContextFilter()
-
-
Method Details
-
init
- Specified by:
initin interfaceFilter- Overrides:
initin classAbstractConditionalFilter- Throws:
ServletException
-
destroy
public void destroy()- Specified by:
destroyin interfaceFilter- Overrides:
destroyin classAbstractConditionalFilter
-
getOrder
public int getOrder()- Specified by:
getOrderin interfaceChainableFilter- Specified by:
getOrderin interfaceOrdered
-
runFilter
protected void runFilter(@Nonnull ServletRequest request, @Nonnull ServletResponse response, @Nonnull FilterChain chain) throws IOException, ServletException Subclasses should override this method to be called when the filter is directed to activate.- Specified by:
runFilterin classAbstractConditionalFilter- Parameters:
request- servlet requestresponse- servlet responsechain- filter chain- Throws:
IOException- on errorServletException- on error
-