Class Cookies

java.lang.Object
org.eclipse.jetty.http.CookieCutter
org.eclipse.jetty.server.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 Details

    • LOG

      protected static final org.slf4j.Logger LOG
    • _rawFields

      protected final List<String> _rawFields
    • _cookieList

      protected final List<jakarta.servlet.http.Cookie> _cookieList
  • Constructor Details

  • Method Details

    • addCookieField

      public void addCookieField(String rawField)
    • getCookies

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

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

      public void reset()
    • addCookie

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