public class Cookie
extends java.lang.Object
Constructor and Description |
---|
Cookie(java.lang.String name)
Create a cookie with the specified name.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getComment()
Get the comment.
|
java.lang.String |
getDomain()
Get the domain.
|
int |
getMaxAge()
Get the maximum age (in seconds).
|
java.lang.String |
getName()
Get the name.
|
java.lang.String |
getPath()
Get the path.
|
java.lang.String |
getValue()
Get the value.
|
int |
getVersion()
Get the version.
|
boolean |
isHttpOnly()
Get the HttpOnly flag.
|
boolean |
isSecure()
Check the secure flag.
|
void |
setComment(java.lang.String comment)
Set the comment.
|
void |
setDomain(java.lang.String domain)
Set the domain.
|
void |
setHttpOnly(boolean httpOnly)
Set the HttpOnly flag.
|
void |
setMaxAge(int maxAge)
Set the maximum age (in seconds).
|
void |
setPath(java.lang.String path)
Set the path.
|
void |
setSecure(boolean secure)
Set the secure flag.
|
void |
setValue(java.lang.String value)
Set the value.
|
void |
setVersion(int version)
Set the version.
|
public Cookie(java.lang.String name)
name
- The name.public java.lang.String getComment()
public void setComment(java.lang.String comment)
comment
- The comment.public java.lang.String getDomain()
public void setDomain(java.lang.String domain)
domain
- The domain.public boolean isHttpOnly()
public void setHttpOnly(boolean httpOnly)
httpOnly
- The HttpOnly flag.public int getMaxAge()
public void setMaxAge(int maxAge)
maxAge
- The maximum age.public java.lang.String getName()
public java.lang.String getPath()
public void setPath(java.lang.String path)
path
- The path.public boolean isSecure()
public void setSecure(boolean secure)
secure
- The secure flag.public java.lang.String getValue()
public void setValue(java.lang.String value)
value
- The value.public int getVersion()
public void setVersion(int version)
version
- The version.