Class RFC6265CookieSpec

  • All Implemented Interfaces:
    CookieSpec
    Direct Known Subclasses:
    RFC6265LaxSpec, RFC6265StrictSpec

    @Contract(threading=SAFE)
    public class RFC6265CookieSpec
    extends java.lang.Object
    implements CookieSpec
    Cookie management functions shared by RFC 6265 compliant specification.
    Since:
    4.5
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<org.apache.hc.core5.http.Header> formatCookies​(java.util.List<Cookie> cookies)
      Create "Cookie" headers for an array of Cookies.
      boolean match​(Cookie cookie, CookieOrigin origin)
      Determines if a Cookie matches the target location.
      java.util.List<Cookie> parse​(org.apache.hc.core5.http.Header header, CookieOrigin origin)
      Parse the "Set-Cookie" Header into an array of Cookies.
      void validate​(Cookie cookie, CookieOrigin origin)
      Validate the cookie according to validation rules defined by the cookie specification.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait