org.apache.http.cookie.SetCookie2
This interface represents a SetCookie2
response header sent by the
origin server to the HTTP agent in order to maintain a conversational state.
Summary
Public Methods
getComment,
getCommentURL,
getDomain,
getExpiryDate,
getName,
getPath,
getPorts,
getValue,
getVersion,
isExpired,
isPersistent,
isSecure
Details
Public Methods
public
void
setCommentURL(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.
public
void
setDiscard(boolean discard)
Set the Discard attribute.
Note:
Discard attribute overrides
Max-age.
public
void
setPorts(int[] ports)
Sets the Port attribute. It restricts the ports to which a cookie
may be returned in a Cookie request header.