public class CookieData extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
EXPIRED_AGE
Expired cookie
|
static int |
NULL_AGE
Null (unset) cookie age
|
| Constructor and Description |
|---|
CookieData(URL url,
String key,
String value)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(CookieData cookie)
Equal cookies?
|
String |
getDomain()
Get the domain
|
String |
getExpires()
Get the expiration date
|
int |
getMaxAge()
Get the maximum age for this cookie
|
String |
getName()
Get cookie name
|
String |
getPath()
Get the path
|
boolean |
getSecure() |
String |
getValue()
Get cookie value (the cookie "text")
|
String |
getVersion()
Get the cookie version
|
void |
setDomain(String domain)
Save the domain
|
void |
setExpires(String expires)
Save the expiration date
|
void |
setMaxAge(String maxAge)
Set the maximum age for this cookie
|
void |
setPath(String path)
Save the path
|
void |
setSecure(boolean secure)
Save security setting (true if cookie to be sent only via HTTPS)
|
void |
setVersion(String version)
Save the version
|
public static final int NULL_AGE
public static final int EXPIRED_AGE
public String getName()
public String getValue()
public void setPath(String path)
public String getPath()
public void setExpires(String expires)
public String getExpires()
public void setDomain(String domain)
public String getDomain()
public void setVersion(String version)
public String getVersion()
public void setMaxAge(String maxAge)
public int getMaxAge()
public void setSecure(boolean secure)
public boolean getSecure()
public boolean equals(CookieData cookie)
cookie - for comparisonCopyright © 2003–2020 Sakai Project. All rights reserved.