org.jboss.netty.handler.codec.http
接口 Cookie

所有超级接口:
java.lang.Comparable<Cookie>
所有已知实现类:
DefaultCookie

public interface Cookie
extends java.lang.Comparable<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
 

方法详细信息

getName

java.lang.String getName()
Returns the name of this cookie.


getValue

java.lang.String getValue()
Returns the value of this cookie.


setValue

void setValue(java.lang.String value)
Sets the value of this cookie.


getDomain

java.lang.String getDomain()
Returns the domain of this cookie.


setDomain

void setDomain(java.lang.String domain)
Sets the domain of this cookie.


getPath

java.lang.String getPath()
Returns the path of this cookie.


setPath

void setPath(java.lang.String path)
Sets the path of this cookie.


getComment

java.lang.String getComment()
Returns the comment of this cookie.


setComment

void setComment(java.lang.String comment)
Sets the comment of this cookie.


getMaxAge

int getMaxAge()
Returns the max age of this cookie in seconds.


setMaxAge

void setMaxAge(int maxAge)
Sets the max age of this cookie in seconds. If 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.


getVersion

int getVersion()
Returns the version of this cookie.


setVersion

void setVersion(int version)
Sets the version of this cookie.


isSecure

boolean isSecure()
Returns the secure flag of this cookie.


setSecure

void setSecure(boolean secure)
Sets the secure flag of this cookie.


isHttpOnly

boolean isHttpOnly()
Returns if this cookie cannot be accessed through client side script. This flag works only if the browser supports it. For more information, see here.


setHttpOnly

void setHttpOnly(boolean httpOnly)
Sets if this cookie cannot be accessed through client side script. This flag works only if the browser supports it. For more information, see here.


getCommentUrl

java.lang.String getCommentUrl()
Returns the comment URL of this cookie.


setCommentUrl

void setCommentUrl(java.lang.String commentUrl)
Sets the comment URL of this cookie.


isDiscard

boolean isDiscard()
Returns the discard flag of this cookie.


setDiscard

void setDiscard(boolean discard)
Sets the discard flag of this cookie.


getPorts

java.util.Set<java.lang.Integer> getPorts()
Returns the ports of this cookie.


setPorts

void setPorts(int... ports)
Sets the ports of this cookie.


setPorts

void setPorts(java.lang.Iterable<java.lang.Integer> ports)
Sets the ports of this cookie.