Class CookieBufferingFilter

java.lang.Object
net.shibboleth.utilities.java.support.net.CookieBufferingFilter
All Implemented Interfaces:
javax.servlet.Filter

public class CookieBufferingFilter
extends Object
implements javax.servlet.Filter
Implementation of an HTTP servlet Filter which wraps the HttpServletResponse via CookieBufferingFilter.CookieBufferingHttpServletResponseProxy to ensure that only a single cookie of a given name is set.
  • Constructor Details

    • CookieBufferingFilter

      public CookieBufferingFilter()
  • Method Details

    • init

      public void init​(javax.servlet.FilterConfig filterConfig) throws javax.servlet.ServletException
      Specified by:
      init in interface javax.servlet.Filter
      Throws:
      javax.servlet.ServletException
    • destroy

      public void destroy()
      Specified by:
      destroy in interface javax.servlet.Filter
    • 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 interface javax.servlet.Filter
      Throws:
      IOException
      javax.servlet.ServletException