|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Cookie
An HTTP Cookie.
Method Summary | |
---|---|
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. |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Method Detail |
---|
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 -1
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)
Set<Integer> getPorts()
void setPorts(int... ports)
void setPorts(Iterable<Integer> ports)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |