|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.netty.handler.codec.http2.DefaultCookie
public class DefaultCookie

The default Cookie implementation.
| Constructor Summary | |
|---|---|
DefaultCookie(String name,
String value)
Creates a new cookie with the specified name and value. |
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultCookie(String name,
String value)
| Method Detail |
|---|
public String getName()
Cookie
getName in interface Cookiepublic String getValue()
Cookie
getValue in interface Cookiepublic void setValue(String value)
Cookie
setValue in interface Cookiepublic String getDomain()
Cookie
getDomain in interface Cookiepublic void setDomain(String domain)
Cookie
setDomain in interface Cookiepublic String getPath()
Cookie
getPath in interface Cookiepublic void setPath(String path)
Cookie
setPath in interface Cookiepublic String getComment()
Cookie
getComment in interface Cookiepublic void setComment(String comment)
Cookie
setComment in interface Cookiepublic String getCommentUrl()
Cookie
getCommentUrl in interface Cookiepublic void setCommentUrl(String commentUrl)
Cookie
setCommentUrl in interface Cookiepublic boolean isDiscard()
Cookie
isDiscard in interface Cookiepublic void setDiscard(boolean discard)
Cookie
setDiscard in interface Cookiepublic Set<Integer> getPorts()
Cookie
getPorts in interface Cookiepublic void setPorts(int... ports)
Cookie
setPorts in interface Cookiepublic void setPorts(Iterable<Integer> ports)
Cookie
setPorts in interface Cookiepublic int getMaxAge()
Cookie
getMaxAge in interface Cookiepublic void setMaxAge(int maxAge)
Cookie0 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.
setMaxAge in interface Cookiepublic int getVersion()
Cookie
getVersion in interface Cookiepublic void setVersion(int version)
Cookie
setVersion in interface Cookiepublic boolean isSecure()
Cookie
isSecure in interface Cookiepublic void setSecure(boolean secure)
Cookie
setSecure in interface Cookiepublic boolean isHttpOnly()
Cookie
isHttpOnly in interface Cookiepublic void setHttpOnly(boolean httpOnly)
Cookie
setHttpOnly in interface Cookiepublic int hashCode()
hashCode in class Objectpublic boolean equals(Object o)
equals in class Objectpublic int compareTo(Cookie c)
compareTo in interface Comparable<Cookie>public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||