Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
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 .

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.