Class Cookies

java.lang.Object
org.eclipse.jetty.http.CookieCutter
org.eclipse.jetty.server.Cookies

public class Cookies extends org.eclipse.jetty.http.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 Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final List<javax.servlet.http.Cookie>
     
    protected final List<String>
     
    protected static final org.slf4j.Logger
     

    Fields inherited from class org.eclipse.jetty.http.CookieCutter

    _complianceMode
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    Cookies(org.eclipse.jetty.http.CookieCompliance compliance, org.eclipse.jetty.http.ComplianceViolation.Listener complianceListener)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    addCookie(String name, String value, String domain, String path, int version, String comment)
     
    void
     
    javax.servlet.http.Cookie[]
     
    void
     
    void
    setCookies(javax.servlet.http.Cookie[] cookies)
     

    Methods inherited from class org.eclipse.jetty.http.CookieCutter

    isRFC6265RejectedCharacter, parseFields, reportComplianceViolation

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • LOG

      protected static final org.slf4j.Logger LOG
    • _rawFields

      protected final List<String> _rawFields
    • _cookieList

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

    • Cookies

      public Cookies()
    • Cookies

      public Cookies(org.eclipse.jetty.http.CookieCompliance compliance, org.eclipse.jetty.http.ComplianceViolation.Listener complianceListener)
  • Method Details

    • addCookieField

      public void addCookieField(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(String name, String value, String domain, String path, int version, String comment)
      Specified by:
      addCookie in class org.eclipse.jetty.http.CookieCutter