Android
org.apache.http.client
public interface

org.apache.http.client.CookieStore

org.apache.http.client.CookieStore

Abstract cookie store.

Summary

Public Methods

          void  addCookie(Cookie cookie)
Adds an HTTP cookie, replacing any existing equivalent cookies.
          void  clear()
Clears all cookies.
          boolean  clearExpired(Date date)
Removes all of cookies in this store that have expired by the specified date.
          List<Cookie getCookies()
Returns all cookies contained in this store.

Details

Public Methods

public void addCookie(Cookie cookie)

Adds an HTTP cookie, replacing any existing equivalent cookies. If the given cookie has already expired it will not be added, but existing values will still be removed.

Parameters

cookie the cookie to be added

public void clear()

Clears all cookies.

public boolean clearExpired(Date date)

Removes all of cookies in this store that have expired by the specified date.

Returns

  • true if any cookies were purged.

public List<Cookie> getCookies()

Returns all cookies contained in this store.

Returns

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