|
Apache CXF API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cxf.transport.http.Cookie
public class Cookie
Container for HTTP cookies used to track session state.
| Field Summary | |
|---|---|
static String |
DISCARD_ATTRIBUTE
|
static String |
MAX_AGE_ATTRIBUTE
|
static String |
PATH_ATTRIBUTE
|
| Constructor Summary | |
|---|---|
Cookie(String name,
String value)
Create a new cookie with the supplied name/value pair |
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
|
int |
getMaxAge()
Get the max-age of this cookie |
String |
getName()
Get the name of this cookie |
String |
getPath()
Get the path of this cookie |
String |
getValue()
Get the value of this cookie |
int |
hashCode()
|
String |
requestCookieHeader()
Convert a list of cookies into a string suitable for sending as a "Cookie:" header |
void |
setMaxAge(int maxAge)
Set the max-age of this cookie. |
void |
setPath(String path)
Set the path of this cookie |
void |
setValue(String value)
Change the value of this cookie |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String DISCARD_ATTRIBUTE
public static final String MAX_AGE_ATTRIBUTE
public static final String PATH_ATTRIBUTE
| Constructor Detail |
|---|
public Cookie(String name,
String value)
name - value - | Method Detail |
|---|
public String getName()
public void setValue(String value)
value - public String getValue()
public void setPath(String path)
path - public String getPath()
public void setMaxAge(int maxAge)
maxAge - public int getMaxAge()
public int hashCode()
hashCode in class Objectpublic boolean equals(Object o)
equals in class Objectpublic String requestCookieHeader()
|
Apache CXF API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||