Class Cookies


  • public class Cookies
    extends CookieCutter
    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.

    • Field Detail

      • LOG

        protected static final org.slf4j.Logger LOG
      • _rawFields

        protected final java.util.List<java.lang.String> _rawFields
      • _cookieList

        protected final java.util.List<javax.servlet.http.Cookie> _cookieList
    • Method Detail

      • addCookieField

        public void addCookieField​(java.lang.String rawField)
      • getCookies

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

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

        public void reset()
      • addCookie

        protected void addCookie​(java.lang.String name,
                                 java.lang.String value,
                                 java.lang.String domain,
                                 java.lang.String path,
                                 int version,
                                 java.lang.String comment)
        Specified by:
        addCookie in class CookieCutter