Android APIs
public interface

SetCookie2

implements SetCookie
org.apache.http.cookie.SetCookie2
Known Indirect Subclasses

Class Overview

This interface represents a SetCookie2 response header sent by the origin server to the HTTP agent in order to maintain a conversational state.

Summary

Public Methods
abstract void setCommentURL(String commentURL)
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 void setDiscard(boolean discard)
Set the Discard attribute.
abstract void setPorts(int[] ports)
Sets the Port attribute.
[Expand]
Inherited Methods
From interface org.apache.http.cookie.SetCookie
From interface org.apache.http.cookie.Cookie

Public Methods

public abstract void setCommentURL (String commentURL)

Added in API level 1

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.

public abstract void setDiscard (boolean discard)

Added in API level 1

Set the Discard attribute. Note: Discard attribute overrides Max-age.

See Also

public abstract void setPorts (int[] ports)

Added in API level 1

Sets the Port attribute. It restricts the ports to which a cookie may be returned in a Cookie request header.