Class CookieCutter


  • public class CookieCutter
    extends Object
    Cookie parser

    Optimized stateful cookie parser. 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 Detail

      • CookieCutter

        public CookieCutter()
      • CookieCutter

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

      • getCookies

        public Cookie[] getCookies()
      • setCookies

        public void setCookies​(Cookie[] cookies)
      • reset

        public void reset()
      • addCookieField

        public void addCookieField​(String f)
      • parseFields

        protected void parseFields()