Skip to content

Most visited

Recently visited

navigation

SetCookie2 | Android Developers

to top
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.Cookie
From interface org.apache.http.cookie.SetCookie

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.

This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a one-minute survey?
Help us improve Android tools and documentation.