public class Cookie extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
comment
Optional documentation of the intended use of the cookie.
|
protected String |
domain
The domain for which the cookie is valid.
|
protected Date |
expires
The date at which this cookie expires.
|
protected String |
name
The name of the cookie.
|
protected 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 String |
value
The value of the cookie.
|
| Constructor and Description |
|---|
Cookie(String name,
String value,
String comment,
String domain,
String path,
boolean secure,
Date expires) |
| Modifier and Type | Method and Description |
|---|---|
String |
getComment() |
String |
getDomain() |
Date |
getExpiryDate() |
String |
getName() |
String |
getPath() |
String |
getValue() |
boolean |
isSecure() |
String |
toString() |
String |
toString(boolean showPath,
boolean showDomain) |
protected final String name
protected final String value
protected final String comment
protected final String domain
protected final String path
protected final boolean secure
protected final Date expires
public String getName()
public String getValue()
public String getComment()
public String getDomain()
public String getPath()
public boolean isSecure()
public Date getExpiryDate()
public String toString(boolean showPath, boolean showDomain)
Copyright © 2017. All rights reserved.