org.apache.http.cookie.ClientCookie |
Known Indirect Subclasses
BasicClientCookie |
HTTP "magic-cookie" represents a piece of state information
that the HTTP agent and the target server can exchange to maintain
a session. |
BasicClientCookie2 |
HTTP "magic-cookie" represents a piece of state information
that the HTTP agent and the target server can exchange to maintain
a session as specified by RFC2965. |
|
Class Overview
ClientCookie extends the standard Cookie
interface with
additional client specific functionality such ability to retrieve
original cookie attributes exactly as they were specified by the
origin server. This is important for generating the Cookie
header because some cookie specifications require that the
Cookie header should include certain attributes only if
they were specified in the Set-Cookie header.
Summary
[Expand]
Inherited Methods |
From interface org.apache.http.cookie.Cookie
abstract
String
|
getComment()
Returns the comment describing the purpose of this cookie, or
null if no such comment has been defined.
|
abstract
String
|
getCommentURL()
If a user agent (web browser) presents this cookie to a user, the
cookie's purpose will be described by the information at this URL.
|
abstract
String
|
getDomain()
Returns domain attribute of the cookie.
|
abstract
Date
|
getExpiryDate()
Returns the expiration Date of the cookie, or null
if none exists.
|
abstract
String
|
getName()
Returns the name.
|
abstract
String
|
getPath()
Returns the path attribute of the cookie
|
abstract
int[]
|
getPorts()
Get the Port attribute.
|
abstract
String
|
getValue()
Returns the value.
|
abstract
int
|
getVersion()
Returns the version of the cookie specification to which this
cookie conforms.
|
abstract
boolean
|
isExpired(Date date)
Returns true if this cookie has expired.
|
abstract
boolean
|
isPersistent()
Returns false if the cookie should be discarded at the end
of the "session"; true otherwise.
|
abstract
boolean
|
isSecure()
Indicates whether this cookie requires a secure connection.
|
|
Constants
public
static
final
String
COMMENTURL_ATTR
Constant Value:
"commenturl"
public
static
final
String
COMMENT_ATTR
Constant Value:
"comment"
public
static
final
String
DISCARD_ATTR
Constant Value:
"discard"
public
static
final
String
DOMAIN_ATTR
public
static
final
String
EXPIRES_ATTR
Constant Value:
"expires"
public
static
final
String
MAX_AGE_ATTR
Constant Value:
"max-age"
public
static
final
String
PATH_ATTR
public
static
final
String
PORT_ATTR
public
static
final
String
SECURE_ATTR
public
static
final
String
VERSION_ATTR
Constant Value:
"version"
Public Methods
public
abstract
boolean
containsAttribute
(String name)