
| Constructor and Description | 
|---|
| DefaultCookie(String name,
             String value)Creates a new cookie with the specified name and value. | 
| Modifier and Type | Method and Description | 
|---|---|
| int | compareTo(Cookie c) | 
| boolean | equals(Object o) | 
| String | getComment()Returns the comment of this cookie. | 
| String | getCommentUrl()Returns the comment URL of this cookie. | 
| String | getDomain()Returns the domain of this cookie. | 
| int | getMaxAge()Returns the max age of this cookie in seconds. | 
| String | getName()Returns the name of this cookie. | 
| String | getPath()Returns the path of this cookie. | 
| Set<Integer> | getPorts()Returns the ports of this cookie. | 
| 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(String comment)Sets the comment of this cookie. | 
| void | setCommentUrl(String commentUrl)Sets the comment URL of this cookie. | 
| void | setDiscard(boolean discard)Sets the discard flag of this cookie. | 
| void | setDomain(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(String path)Sets the path of this cookie. | 
| void | setPorts(int... ports)Sets the ports of this cookie. | 
| void | setPorts(Iterable<Integer> ports)Sets the ports of this cookie. | 
| void | setSecure(boolean secure)Sets the secure flag of this cookie. | 
| void | setValue(String value)Sets the value of this cookie. | 
| void | setVersion(int version)Sets the version of this cookie. | 
| String | toString() | 
public String getName()
Cookiepublic String getValue()
Cookiepublic void setValue(String value)
Cookiepublic String getDomain()
Cookiepublic void setDomain(String domain)
Cookiepublic String getPath()
Cookiepublic void setPath(String path)
Cookiepublic String getComment()
CookiegetComment in interface Cookiepublic void setComment(String comment)
CookiesetComment in interface Cookiepublic String getCommentUrl()
CookiegetCommentUrl in interface Cookiepublic void setCommentUrl(String commentUrl)
CookiesetCommentUrl in interface Cookiepublic boolean isDiscard()
Cookiepublic void setDiscard(boolean discard)
CookiesetDiscard in interface Cookiepublic Set<Integer> getPorts()
Cookiepublic void setPorts(int... ports)
Cookiepublic void setPorts(Iterable<Integer> ports)
Cookiepublic int getMaxAge()
Cookiepublic void setMaxAge(int maxAge)
Cookie0 is specified,
 this cookie will be removed by browser because it will be expired
 immediately.  If Integer.MIN_VALUE is specified, this cookie will be removed
 when a user terminates browser.public int getVersion()
CookiegetVersion in interface Cookiepublic void setVersion(int version)
CookiesetVersion in interface Cookiepublic boolean isSecure()
Cookiepublic void setSecure(boolean secure)
Cookiepublic boolean isHttpOnly()
CookieisHttpOnly in interface Cookiepublic void setHttpOnly(boolean httpOnly)
CookiesetHttpOnly in interface Cookiepublic int compareTo(Cookie c)
compareTo in interface Comparable<Cookie>Copyright © 2008-2014 The Netty Project. All Rights Reserved.