BasicClientCookie2public interface SetCookie2 extends SetCookie
Set-Cookie2 response header sent by the
origin server to the HTTP agent in order to maintain a conversational state.
Please do not use methods marked as @Obsolete. They have been rendered obsolete by RFC 6265
| Modifier and Type | Method | Description |
|---|---|---|
void |
setCommentURL(java.lang.String commentURL) |
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.
|
void |
setDiscard(boolean discard) |
Set the Discard attribute.
|
void |
setPorts(int[] ports) |
Sets the Port attribute.
|
getComment, getCommentURL, getDomain, getExpiryDate, getName, getPath, getPorts, getValue, getVersion, isExpired, isPersistent, isSecuresetComment, setDomain, setExpiryDate, setPath, setSecure, setValue, setVersion@Obsolete void setCommentURL(java.lang.String commentURL)
@Obsolete void setPorts(int[] ports)
@Obsolete void setDiscard(boolean discard)
Discard attribute overrides Max-age.Cookie.isPersistent()