public class Cookie
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
comment
Optional documentation of the intended use of the cookie.
|
protected java.lang.String |
domain
The domain for which the cookie is valid.
|
protected java.util.Date |
expires
The date at which this cookie expires.
|
protected java.lang.String |
name
The name of the cookie.
|
protected java.lang.String |
path
Optional subset of URL paths within the domain for which the cookie is
valid.
|
protected boolean |
secure
Indicates that the user-agent should only use secure means to transmit
this cookie to the server.
|
protected java.lang.String |
value
The value of the cookie.
|
Constructor and Description |
---|
Cookie(java.lang.String name,
java.lang.String value,
java.lang.String comment,
java.lang.String domain,
java.lang.String path,
boolean secure,
java.util.Date expires) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getComment() |
java.lang.String |
getDomain() |
java.util.Date |
getExpiryDate() |
java.lang.String |
getName() |
java.lang.String |
getPath() |
java.lang.String |
getValue() |
boolean |
isSecure() |
java.lang.String |
toString() |
java.lang.String |
toString(boolean showPath,
boolean showDomain) |
protected final java.lang.String name
protected final java.lang.String value
protected final java.lang.String comment
protected final java.lang.String domain
protected final java.lang.String path
protected final boolean secure
protected final java.util.Date expires
public Cookie(java.lang.String name, java.lang.String value, java.lang.String comment, java.lang.String domain, java.lang.String path, boolean secure, java.util.Date expires)
public java.lang.String getName()
public java.lang.String getValue()
public java.lang.String getComment()
public java.lang.String getDomain()
public java.lang.String getPath()
public boolean isSecure()
public java.util.Date getExpiryDate()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toString(boolean showPath, boolean showDomain)