Android
org.apache.http.cookie
public interface

org.apache.http.cookie.SetCookie

org.apache.http.cookie.SetCookie Cookie

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

Known Indirect Subclasses

Summary

Public Methods

          void  setComment(String comment)
If a user agent (web browser) presents this cookie to a user, the cookie's purpose will be described using this comment.
          void  setDomain(String domain)
Sets the domain attribute.
          void  setExpiryDate(Date expiryDate)
Sets expiration date.
          void  setPath(String path)
Sets the path attribute.
          void  setSecure(boolean secure)
Sets the secure attribute of the cookie.
          void  setValue(String value)
          void  setVersion(int version)
Sets the version of the cookie specification to which this cookie conforms.
Methods inherited from interface org.apache.http.cookie.Cookie

Details

Public Methods

public void setComment(String comment)

If a user agent (web browser) presents this cookie to a user, the cookie's purpose will be described using this comment.

See Also

public void setDomain(String domain)

Sets the domain attribute.

Parameters

domain The value of the domain attribute

See Also

public void setExpiryDate(Date expiryDate)

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.

Parameters

expiryDate the Date after which this cookie is no longer valid.

See Also

public void setPath(String path)

Sets the path attribute.

Parameters

path The value of the path attribute

See Also

public void setSecure(boolean secure)

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.

Parameters

secure The value of the secure attribute

See Also

public void setValue(String value)

public void setVersion(int version)

Sets the version of the cookie specification to which this cookie conforms.

Parameters

version the version of the cookie.

See Also

Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:56