|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.restlet.data.Parameter
org.restlet.data.Cookie
org.restlet.data.CookieSetting
public final class CookieSetting
Cookie setting provided by a server.
Constructor Summary | |
---|---|
CookieSetting()
Default constructor. |
|
CookieSetting(int version,
String name,
String value)
Preferred constructor. |
|
CookieSetting(int version,
String name,
String value,
String path,
String domain)
Preferred constructor. |
|
CookieSetting(String name,
String value)
Preferred constructor. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
String |
getComment()
Returns the comment for the user. |
String |
getDescription()
Returns the description of this REST element. |
int |
getMaxAge()
Returns the maximum age in seconds. Use 0 to immediately discard an existing cookie. Use -1 to discard the cookie at the end of the session (default). |
int |
hashCode()
|
boolean |
isSecure()
Indicates if cookie should only be transmitted by secure means. |
void |
setComment(String comment)
Sets the comment for the user. |
void |
setMaxAge(int maxAge)
Sets the maximum age in seconds. Use 0 to immediately discard an existing cookie. Use -1 to discard the cookie at the end of the session (default). |
void |
setSecure(boolean secure)
Indicates if cookie should only be transmitted by secure means. |
Methods inherited from class org.restlet.data.Cookie |
---|
getDomain, getPath, getVersion, setDomain, setPath, setVersion |
Methods inherited from class org.restlet.data.Parameter |
---|
compareTo, encode, encode, getName, getValue, setName, setValue, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CookieSetting()
public CookieSetting(int version, String name, String value)
version
- The cookie's version.name
- The cookie's name.value
- The cookie's value.public CookieSetting(int version, String name, String value, String path, String domain)
version
- The cookie's version.name
- The cookie's name.value
- The cookie's value.path
- The cookie's path.domain
- The cookie's domain name.public CookieSetting(String name, String value)
name
- The cookie's name.value
- The cookie's value.Method Detail |
---|
public boolean equals(Object obj)
equals
in class Cookie
public String getComment()
public String getDescription()
public int getMaxAge()
public int hashCode()
hashCode
in class Cookie
public boolean isSecure()
public void setComment(String comment)
comment
- The comment for the user.public void setMaxAge(int maxAge)
maxAge
- The maximum age in seconds.public void setSecure(boolean secure)
secure
- True if cookie should only be transmitted by secure means.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |