Class HttpCookiePair

  • Direct Known Subclasses:
    HttpCookiePair

    public abstract class HttpCookiePair
    extends java.lang.Object
    Represents a cookie pair as used in the `Cookie` header as specified in http://tools.ietf.org/search/rfc6265#section-4.2.1
    • Constructor Detail

      • HttpCookiePair

        public HttpCookiePair()
    • Method Detail

      • name

        public abstract java.lang.String name()
      • value

        public abstract java.lang.String value()
      • toCookie

        public abstract HttpCookie toCookie()
        Converts this cookie pair into an HttpCookie to be used with the `Set-Cookie` header.
      • create

        public static HttpCookiePair create​(java.lang.String name,
                                            java.lang.String value)
      • createRaw

        public static HttpCookiePair createRaw​(java.lang.String name,
                                               java.lang.String value)