Package org.apache.http.cookie
Interface SetCookie2
- All Known Implementing Classes:
BasicClientCookie2
This interface represents a
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
- Since:
- 4.0
-
Method Summary
Modifier and TypeMethodDescriptionvoidsetCommentURL(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.voidsetDiscard(boolean discard) Set the Discard attribute.voidsetPorts(int[] ports) Sets the Port attribute.Methods inherited from interface org.apache.http.cookie.Cookie
getComment, getCommentURL, getDomain, getExpiryDate, getName, getPath, getPorts, getValue, getVersion, isExpired, isPersistent, isSecureMethods inherited from interface org.apache.http.cookie.SetCookie
setComment, setDomain, setExpiryDate, setPath, setSecure, setValue, setVersion
-
Method Details
-
setCommentURL
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. -
setPorts
Sets the Port attribute. It restricts the ports to which a cookie may be returned in a Cookie request header. -
setDiscard
Set the Discard attribute. Note:Discardattribute overridesMax-age.- See Also:
-