| org.apache.http.cookie.SetCookie | 
|  Known Indirect Subclasses | 
This interface represents a SetCookie response header sent by the origin server to the HTTP agent in order to maintain a conversational state.
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|  | 
           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 version of the cookie specification to which this cookie conforms.
           | ||||||||||
| [Expand] 
           Inherited Methods
           | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|  From interface org.apache.http.cookie.Cookie | |||||||||||
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 Dateafter 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. | 
|---|