Methods Summary |
---|
public java.lang.String | getComment()Returns the comment describing the purpose of this cookie, or
null if no such comment has been defined.
|
public java.lang.String | getCommentURL()If a user agent (web browser) presents this cookie to a user, the
cookie's purpose will be described by the information at this URL.
|
public java.lang.String | getDomain()Returns domain attribute of the cookie.
|
public java.util.Date | getExpiryDate()Returns the expiration {@link Date} of the cookie, or null
if none exists.
Note: the object returned by this method is
considered immutable. Changing it (e.g. using setTime()) could result
in undefined behaviour. Do so at your peril.
|
public java.lang.String | getName()Returns the name.
|
public java.lang.String | getPath()Returns the path attribute of the cookie
|
public int[] | getPorts()Get the Port attribute. It restricts the ports to which a cookie
may be returned in a Cookie request header.
|
public java.lang.String | getValue()Returns the value.
|
public int | getVersion()Returns the version of the cookie specification to which this
cookie conforms.
|
public boolean | isExpired(java.util.Date date)Returns true if this cookie has expired.
|
public boolean | isPersistent()Returns false if the cookie should be discarded at the end
of the "session"; true otherwise.
|
public boolean | isSecure()Indicates whether this cookie requires a secure connection.
|