public interface SetCookie2 extends SetCookie
Set-Cookie2响应头,以保持会话状态。
请不要使用标记为@Obsolete的方法。 它们被RFC 6265废弃了
| Modifier and Type | Method and Description |
|---|---|
void |
setCommentURL(String commentURL)
如果用户代理(Web浏览器)向用户显示此Cookie,则Cookie的用途将由此URL上的信息描述。
|
void |
setDiscard(boolean discard)
设置Discard属性。
|
void |
setPorts(int[] ports)
设置端口属性。
|
setComment, setDomain, setExpiryDate, setPath, setSecure, setValue, setVersiongetComment, 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属性覆盖Max-age 。
Cookie.isPersistent()
Copyright © 1999–2017 The Apache Software Foundation. All rights reserved.