public interface Cookie extends Comparable<Cookie>
Modifier and Type | Method and Description |
---|---|
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.
|
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.
|
compareTo
String getName()
String getValue()
void setValue(String value)
String getDomain()
void setDomain(String domain)
String getPath()
void setPath(String path)
String getComment()
void setComment(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 Integer.MIN_VALUE
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)
String getCommentUrl()
void setCommentUrl(String commentUrl)
boolean isDiscard()
void setDiscard(boolean discard)
void setPorts(int... ports)
Copyright © 2008-2014 The Netty Project. All Rights Reserved.