|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.restlet.util.Couple<String,String>
org.restlet.data.Parameter
org.restlet.data.Cookie
public class Cookie
Cookie provided by a client. To get the list of all cookies sent by a client,
you can use the Request.getCookies() method.
Note that if you are on the server side and want to set a cookie on the
client, you should use the CookieSetting class instead.
Note that when used with HTTP connectors, this class maps to the "Cookie"
header.
Request.getCookies(),
User
Guide - Getting parameter values| Constructor Summary | |
|---|---|
Cookie()
Constructor. |
|
Cookie(int version,
String name,
String value)
Constructor. |
|
Cookie(int version,
String name,
String value,
String path,
String domain)
Constructor. |
|
Cookie(String name,
String value)
Constructor. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
String |
getDomain()
Returns the domain name. |
String |
getPath()
Returns the validity path. |
int |
getVersion()
Returns the cookie specification version. |
int |
hashCode()
|
void |
setDomain(String domain)
Sets the domain name. |
void |
setPath(String path)
Sets the validity path. |
void |
setVersion(int version)
Sets the cookie specification version. |
| Methods inherited from class org.restlet.data.Parameter |
|---|
compareTo, create, encode, encode, getName, getValue, setName, setValue |
| Methods inherited from class org.restlet.util.Couple |
|---|
getFirst, getSecond, setFirst, setSecond, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Cookie()
public Cookie(int version,
String name,
String value)
version - The version number.name - The name.value - The value.
public Cookie(int version,
String name,
String value,
String path,
String domain)
version - The version number.name - The name.value - The value.path - The validity path.domain - The domain name.
public Cookie(String name,
String value)
name - The name.value - The value.| Method Detail |
|---|
public boolean equals(Object obj)
equals in class Couple<String,String>public String getDomain()
public String getPath()
public int getVersion()
public int hashCode()
hashCode in class Couple<String,String>public void setDomain(String domain)
domain - The domain name.public void setPath(String path)
path - The validity path.public void setVersion(int version)
version - The cookie specification version.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||