Class CookieCutter


  • public class CookieCutter
    extends java.lang.Object
    Cookie parser

    Optimized stateful Cookie header parser. Does not support Set-Cookie header parsing.

    Cookies fields are added with the addCookieField(String) method and parsed on the next subsequent call to getCookies().

    If the added fields are identical to those last added (as strings), then the cookies are not re parsed.

    • Constructor Summary

      Constructors 
      Constructor Description
      CookieCutter()  
      CookieCutter​(org.eclipse.jetty.http.CookieCompliance compliance)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addCookieField​(java.lang.String f)  
      javax.servlet.http.Cookie[] getCookies()  
      protected void parseFields()  
      void reset()  
      void setCookies​(javax.servlet.http.Cookie[] cookies)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CookieCutter

        public CookieCutter()
      • CookieCutter

        public CookieCutter​(org.eclipse.jetty.http.CookieCompliance compliance)
    • Method Detail

      • getCookies

        public javax.servlet.http.Cookie[] getCookies()
      • setCookies

        public void setCookies​(javax.servlet.http.Cookie[] cookies)
      • reset

        public void reset()
      • addCookieField

        public void addCookieField​(java.lang.String f)
      • parseFields

        protected void parseFields()