org.apache.http.cookie.Cookie |
Known Indirect Subclasses |
Cookie interface represents a token or short packet of state information (also referred to as "magic-cookie") that the HTTP agent and the target server can exchange to maintain a session. In its simples form an HTTP cookie is merely a name / value pair.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the comment describing the purpose of this cookie, or
null if no such comment has been defined.
| |||||||||||
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.
| |||||||||||
Returns domain attribute of the cookie.
| |||||||||||
Returns the expiration
Date of the cookie, or null
if none exists. | |||||||||||
Returns the name.
| |||||||||||
Returns the path attribute of the cookie.
| |||||||||||
Get the Port attribute.
| |||||||||||
Returns the value.
| |||||||||||
Returns the version of the cookie specification to which this
cookie conforms.
| |||||||||||
Returns true if this cookie has expired.
| |||||||||||
Returns false if the cookie should be discarded at the end
of the "session"; true otherwise.
| |||||||||||
Indicates whether this cookie requires a secure connection.
|
Returns the comment describing the purpose of this cookie, or null if no such comment has been defined.
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.
Returns domain attribute of the cookie. The value of the Domain attribute specifies the domain for which the cookie is valid.
Returns the path attribute of the cookie. The value of the Path attribute specifies the subset of URLs on the origin server to which this cookie applies.
Get the Port attribute. It restricts the ports to which a cookie may be returned in a Cookie request header.
Returns the value.
Returns the version of the cookie specification to which this cookie conforms.
Returns true if this cookie has expired.
date | Current time |
---|
Returns false if the cookie should be discarded at the end of the "session"; true otherwise.
Indicates whether this cookie requires a secure connection.
true
if this cookie should only be sent
over secure connections, false
otherwise.