|
|||||||||
| 上一个类 下一个类 | 框架 无框架 | ||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | ||||||||
java.lang.Objectorg.jboss.netty.handler.codec.http.DefaultCookie
public class DefaultCookie

The default Cookie implementation.
| 构造方法摘要 | |
|---|---|
DefaultCookie(java.lang.String name,
java.lang.String value)
Creates a new cookie with the specified name and value. |
|
| 方法摘要 | |
|---|---|
int |
compareTo(Cookie c)
|
boolean |
equals(java.lang.Object o)
|
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. |
int |
hashCode()
|
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.String |
toString()
|
| 从类 java.lang.Object 继承的方法 |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| 构造方法详细信息 |
|---|
public DefaultCookie(java.lang.String name,
java.lang.String value)
| 方法详细信息 |
|---|
public java.lang.String getName()
Cookie 复制的描述
Cookie 中的 getNamepublic java.lang.String getValue()
Cookie 复制的描述
Cookie 中的 getValuepublic void setValue(java.lang.String value)
Cookie 复制的描述
Cookie 中的 setValuepublic java.lang.String getDomain()
Cookie 复制的描述
Cookie 中的 getDomainpublic void setDomain(java.lang.String domain)
Cookie 复制的描述
Cookie 中的 setDomainpublic java.lang.String getPath()
Cookie 复制的描述
Cookie 中的 getPathpublic void setPath(java.lang.String path)
Cookie 复制的描述
Cookie 中的 setPathpublic java.lang.String getComment()
Cookie 复制的描述
Cookie 中的 getCommentpublic void setComment(java.lang.String comment)
Cookie 复制的描述
Cookie 中的 setCommentpublic java.lang.String getCommentUrl()
Cookie 复制的描述
Cookie 中的 getCommentUrlpublic void setCommentUrl(java.lang.String commentUrl)
Cookie 复制的描述
Cookie 中的 setCommentUrlpublic boolean isDiscard()
Cookie 复制的描述
Cookie 中的 isDiscardpublic void setDiscard(boolean discard)
Cookie 复制的描述
Cookie 中的 setDiscardpublic java.util.Set<java.lang.Integer> getPorts()
Cookie 复制的描述
Cookie 中的 getPortspublic void setPorts(int... ports)
Cookie 复制的描述
Cookie 中的 setPortspublic void setPorts(java.lang.Iterable<java.lang.Integer> ports)
Cookie 复制的描述
Cookie 中的 setPortspublic int getMaxAge()
Cookie 复制的描述
Cookie 中的 getMaxAgepublic void setMaxAge(int maxAge)
Cookie 复制的描述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.
Cookie 中的 setMaxAgepublic int getVersion()
Cookie 复制的描述
Cookie 中的 getVersionpublic void setVersion(int version)
Cookie 复制的描述
Cookie 中的 setVersionpublic boolean isSecure()
Cookie 复制的描述
Cookie 中的 isSecurepublic void setSecure(boolean secure)
Cookie 复制的描述
Cookie 中的 setSecurepublic boolean isHttpOnly()
Cookie 复制的描述
Cookie 中的 isHttpOnlypublic void setHttpOnly(boolean httpOnly)
Cookie 复制的描述
Cookie 中的 setHttpOnlypublic int hashCode()
java.lang.Object 中的 hashCodepublic boolean equals(java.lang.Object o)
java.lang.Object 中的 equalspublic int compareTo(Cookie c)
java.lang.Comparable<Cookie> 中的 compareTopublic java.lang.String toString()
java.lang.Object 中的 toString
|
|||||||||
| 上一个类 下一个类 | 框架 无框架 | ||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | ||||||||