java.lang.Object | |
↳ | org.apache.http.impl.cookie.BasicClientCookie |
Known Direct Subclasses |
Default implementation of SetCookie
.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface org.apache.http.cookie.ClientCookie |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Default Constructor taking a name and a value.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the comment describing the purpose of this cookie, or
null if no such comment has been defined.
| |||||||||||
Returns null.
| |||||||||||
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
| |||||||||||
Returns null.
| |||||||||||
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.
| |||||||||||
If a user agent (web browser) presents this cookie to a user, the
cookie's purpose will be described using this comment.
| |||||||||||
Sets the domain attribute.
| |||||||||||
Sets expiration date.
| |||||||||||
Sets the path attribute.
| |||||||||||
Sets the secure attribute of the cookie.
| |||||||||||
Sets the value
| |||||||||||
Sets the version of the cookie specification to which this
cookie conforms.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface org.apache.http.cookie.ClientCookie | |||||||||||
From interface org.apache.http.cookie.Cookie | |||||||||||
From interface org.apache.http.cookie.SetCookie |
Default Constructor taking a name and a value. The value may be null.
name | The name. |
---|---|
value | The value. |
Returns the comment describing the purpose of this cookie, or null if no such comment has been defined.
Returns null. Cookies prior to RFC2965 do not set this attribute
Returns domain attribute of the cookie.
Returns the path attribute of the cookie
Returns null. Cookies prior to RFC2965 do not set this attribute
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.If a user agent (web browser) presents this cookie to a user, the cookie's purpose will be described using this comment.
Sets expiration date.
Note: the object returned by this method is considered immutable. Changing it (e.g. using setTime()) could result in undefined behaviour. Do so at your peril.
expiryDate | the Date after which this cookie is no longer valid. |
---|
Sets the secure attribute of the cookie.
When true the cookie should only be sent using a secure protocol (https). This should only be set when the cookie's originating server used a secure protocol to set the cookie's value.
secure | The value of the secure attribute |
---|
Sets the version of the cookie specification to which this cookie conforms.
version | the version of the cookie. |
---|