Please do not use attributes marked as @Obsolete. They have been rendered obsolete by RFC 6265.
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: commentReturns the comment describing the purpose of this cookie, or
|
| public 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 String | |
| public Date | |
| public String | |
| public String | |
| public int[] | |
| public String | |
| public int | Returns: the version of the cookie.Returns the version of the cookie specification to which this cookie conforms. |
| public boolean | |
| public boolean | Returns: false if the cookie should be discarded at the end
of the "session"; true otherwiseReturns |
| public boolean | Returns: true if this cookie should only be sent
over secure connections, false otherwise.Indicates whether this cookie requires a secure connection. |
| getComment | back to summary |
|---|---|
| public String getComment() Returns the comment describing the purpose of this cookie, or
| |
| getCommentURL | back to summary |
|---|---|
| public 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.
| |
| getDomain | back to summary |
|---|---|
| public String getDomain() Returns domain attribute of the cookie. The value of the Domain attribute specifies the domain for which the cookie is valid.
| |
| getExpiryDate | back to summary |
|---|---|
| public Date getExpiryDate() Returns the expiration 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. | |
| getName | back to summary |
|---|---|
| public String getName() Returns the name.
| |
| getPath | back to summary |
|---|---|
| public String getPath() Returns the path attribute of the cookie. The value of the Path attribute specifies the subset of URLs on the origin server to which this cookie applies.
| |
| getPorts | back to summary |
|---|---|
| public int[] getPorts() Get the Port attribute. It restricts the ports to which a cookie may be returned in a Cookie request header.
| |
| getValue | back to summary |
|---|---|
| public String getValue() Returns the value.
| |
| getVersion | back to summary |
|---|---|
| public int getVersion() Returns the version of the cookie specification to which this cookie conforms.
| |
| isExpired | back to summary |
|---|---|
| public boolean isExpired(final Date date) Returns true if this cookie has expired.
| |
| isPersistent | back to summary |
|---|---|
| public boolean isPersistent() Returns
| |
| isSecure | back to summary |
|---|---|
| public boolean isSecure() Indicates whether this cookie requires a secure connection.
| |