|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.services.rest.Cookie
public final class Cookie
| Constructor Summary | |
|---|---|
Cookie(String name,
String value)
Cookie with default version, and without specified path and domain. |
|
Cookie(String name,
String value,
String path,
String domain)
Cookie with default version, default version is 0. |
|
Cookie(String name,
String value,
String path,
String domain,
int version)
|
|
| Method Summary | |
|---|---|
String |
getComment()
|
String |
getDomain()
|
int |
getMaxAge()
A positive value indicates that the cookie will expire after that many seconds have passed. A negative value means that the cookie is not stored persistently and will be deleted when the Web browser exits. |
String |
getName()
|
String |
getPath()
|
String |
getValue()
|
int |
getVersion()
Cookie version. |
boolean |
isSecure()
Check is this cookie marked as secure. |
void |
setComment(String comment)
|
void |
setMaxAge(int maxAge)
|
void |
setSecure(boolean secure)
|
void |
setVersion(int version)
|
String |
toString()
String representation of cookie. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Cookie(String name,
String value,
String path,
String domain,
int version)
name - the coolie name.value - the cookie value.path - the URLs that see the cookie.domain - the domain that sees cookie.version - the cookie version, can be 0 or 1.
public Cookie(String name,
String value,
String path,
String domain)
name - the coolie name.value - the cookie value.path - the URLs that see the cookie.domain - the domain that sees cookie.
public Cookie(String name,
String value)
name - the coolie name.value - the cookie value.| Method Detail |
|---|
public String getName()
public String getValue()
public int getMaxAge()
public void setMaxAge(int maxAge)
maxAge - the new cookie max age.getMaxAge()public int getVersion()
public void setVersion(int version)
version - the cookie version.getVersion()public String getDomain()
public String getPath()
public boolean isSecure()
public void setSecure(boolean secure)
secure - the new cookie secure state.isSecure()public String getComment()
public void setComment(String comment)
comment - the comment for this cookie.public String toString()
toString in class Object{@inheritDoc}
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||