| java.lang.Object | ||
| ↳ | org.apache.http.impl.cookie.BasicClientCookie | |
| ↳ | org.apache.http.impl.cookie.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.
|
[Expand]
Inherited Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From interface
org.apache.http.cookie.ClientCookie
| |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Default Constructor taking a name and a value.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Creates and returns a copy of this
Object. | |||||||||||
Returns null.
| |||||||||||
Returns null.
| |||||||||||
Returns true if this cookie has expired.
| |||||||||||
Returns false if the cookie should be discarded at the end
of the "session"; true otherwise.
| |||||||||||
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.
| |||||||||||
Set the Discard attribute.
| |||||||||||
Sets the Port attribute.
| |||||||||||
Default Constructor taking a name and a value. The value may be null.
| name | The name. |
|---|---|
| value | The value. |
Creates and returns a copy of this Object. The default
implementation returns a so-called "shallow" copy: It creates a new
instance of the same class and then copies the field values (including
object references) from this instance to the new instance. A "deep" copy,
in contrast, would also recursively clone nested objects. A subclass that
needs to implement this kind of cloning should call super.clone()
to create the new instance and then create deep copies of the nested,
mutable objects.
| CloneNotSupportedException |
|---|
Returns null. Cookies prior to RFC2965 do not set this attribute
Returns null. Cookies prior to RFC2965 do not set this attribute
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.
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.
Set the Discard attribute. Note: Discard attribute overrides Max-age.
Sets the Port attribute. It restricts the ports to which a cookie may be returned in a Cookie request header.