public class Cookie extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DISCARD_ATTRIBUTE |
static String |
MAX_AGE_ATTRIBUTE |
static String |
PATH_ATTRIBUTE |
Constructor and Description |
---|
Cookie(String name,
String value)
Create a new cookie with the supplied name/value pair
|
Modifier and Type | Method and Description |
---|---|
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
|
public static final String DISCARD_ATTRIBUTE
public static final String MAX_AGE_ATTRIBUTE
public static final String PATH_ATTRIBUTE
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 String requestCookieHeader()
Apache CXF