Class CookieCache

java.lang.Object
org.eclipse.jetty.http.CookieCache
All Implemented Interfaces:
CookieParser.Handler

public class CookieCache extends Object implements CookieParser.Handler
Cookie parser

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

  • Field Details

    • LOG

      protected static final org.slf4j.Logger LOG
    • _rawFields

      protected final List<String> _rawFields
    • _cookieList

      protected List<HttpCookie> _cookieList
  • Constructor Details

  • Method Details

    • addCookie

      public void addCookie(String cookieName, String cookieValue, int cookieVersion, String cookieDomain, String cookiePath, String cookieComment)
      Specified by:
      addCookie in interface CookieParser.Handler
    • getCookies

      public List<HttpCookie> getCookies(HttpFields headers)
    • replaceCookieList

      public void replaceCookieList(List<HttpCookie> cookies)
      Replace the cookie list with
      Parameters:
      cookies - The replacement cookie list, which must be equal to the existing list