Class HttpCookie

  • All Implemented Interfaces:
    Serializable

    public class HttpCookie
    extends Object
    implements Serializable
    An object which represents an HTTP cookie. Can be constructed by parsing a string from the set-cookie: header. Syntax: Set-Cookie: NAME=VALUE; expires=DATE; path=PATH; domain=DOMAIN_NAME; secure All but the first field are optional.
    Author:
    JAX-RPC Development Team
    See Also:
    Serialized Form
    • Constructor Detail

      • HttpCookie

        public HttpCookie​(String cookieString)
      • HttpCookie

        public HttpCookie​(Date expirationDate,
                          String nameAndValue,
                          String path,
                          String domain,
                          boolean isSecure)
      • HttpCookie

        public HttpCookie​(URL url,
                          String cookieString)
    • Method Detail

      • getNameValue

        public String getNameValue()
      • getName

        public String getName()
        Returns just the name part of the cookie
      • getDomain

        public String getDomain()
        Returns the domain of the cookie as it was presented
      • getPath

        public String getPath()
      • getExpirationDate

        public Date getExpirationDate()
      • isSecure

        public boolean isSecure()