public 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 and Description |
---|---|
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.
|
void |
setDiscard(boolean discard)
Set the Discard attribute.
|
void |
setPorts(int[] ports)
Sets the Port attribute.
|
setComment, setDomain, setExpiryDate, setPath, setSecure, setValue, setVersion
getComment, getCommentURL, getDomain, getExpiryDate, getName, getPath, getPorts, getValue, getVersion, isExpired, isPersistent, isSecure
@Obsolete void setCommentURL(String commentURL)
@Obsolete void setPorts(int[] ports)
@Obsolete void setDiscard(boolean discard)
Discard
attribute overrides Max-age
.Cookie.isPersistent()
Copyright © 1999–2022 The Apache Software Foundation. All rights reserved.