|
|||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |
public interface Cookie
An HTTP Cookie.
方法摘要 | |
---|---|
java.lang.String |
getComment()
Returns the comment of this cookie. |
java.lang.String |
getCommentUrl()
Returns the comment URL of this cookie. |
java.lang.String |
getDomain()
Returns the domain of this cookie. |
int |
getMaxAge()
Returns the max age of this cookie in seconds. |
java.lang.String |
getName()
Returns the name of this cookie. |
java.lang.String |
getPath()
Returns the path of this cookie. |
java.util.Set<java.lang.Integer> |
getPorts()
Returns the ports of this cookie. |
java.lang.String |
getValue()
Returns the value of this cookie. |
int |
getVersion()
Returns the version of this cookie. |
boolean |
isDiscard()
Returns the discard flag of this cookie. |
boolean |
isHttpOnly()
Returns if this cookie cannot be accessed through client side script. |
boolean |
isSecure()
Returns the secure flag of this cookie. |
void |
setComment(java.lang.String comment)
Sets the comment of this cookie. |
void |
setCommentUrl(java.lang.String commentUrl)
Sets the comment URL of this cookie. |
void |
setDiscard(boolean discard)
Sets the discard flag of this cookie. |
void |
setDomain(java.lang.String domain)
Sets the domain of this cookie. |
void |
setHttpOnly(boolean httpOnly)
Sets if this cookie cannot be accessed through client side script. |
void |
setMaxAge(int maxAge)
Sets the max age of this cookie in seconds. |
void |
setPath(java.lang.String path)
Sets the path of this cookie. |
void |
setPorts(int... ports)
Sets the ports of this cookie. |
void |
setPorts(java.lang.Iterable<java.lang.Integer> ports)
Sets the ports of this cookie. |
void |
setSecure(boolean secure)
Sets the secure flag of this cookie. |
void |
setValue(java.lang.String value)
Sets the value of this cookie. |
void |
setVersion(int version)
Sets the version of this cookie. |
从接口 java.lang.Comparable 继承的方法 |
---|
compareTo |
方法详细信息 |
---|
java.lang.String getName()
java.lang.String getValue()
void setValue(java.lang.String value)
java.lang.String getDomain()
void setDomain(java.lang.String domain)
java.lang.String getPath()
void setPath(java.lang.String path)
java.lang.String getComment()
void setComment(java.lang.String comment)
int getMaxAge()
void setMaxAge(int maxAge)
0
is specified,
this cookie will be removed by browser because it will be expired
immediately. If -1
is specified, this cookie will be removed
when a user terminates browser.
int getVersion()
void setVersion(int version)
boolean isSecure()
void setSecure(boolean secure)
boolean isHttpOnly()
void setHttpOnly(boolean httpOnly)
java.lang.String getCommentUrl()
void setCommentUrl(java.lang.String commentUrl)
boolean isDiscard()
void setDiscard(boolean discard)
java.util.Set<java.lang.Integer> getPorts()
void setPorts(int... ports)
void setPorts(java.lang.Iterable<java.lang.Integer> ports)
|
|||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |