Class CookieBufferingFilter
java.lang.Object
net.shibboleth.shared.servlet.AbstractConditionalFilter
net.shibboleth.shared.spring.servlet.impl.CookieBufferingFilter
- All Implemented Interfaces:
Filter,ChainableFilter,Ordered
Implementation of
Filter which wraps the HttpServletResponse to ensure
that only a single cookie of a given name is set.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate classAn implementation ofHttpServletResponsewhich buffers added cookies to ensure only a single cookie of a given name is eventually set.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
-
CookieBufferingFilter
public CookieBufferingFilter()
-
-
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
-