FileDocCategorySizeDatePackage
CookieStore.javaAPI DocAndroid 1.5 API2467Wed May 06 22:41:10 BST 2009org.apache.http.client

CookieStore

public interface CookieStore
Abstract cookie store.
author
Oleg Kalnichevski
since
4.0

Fields Summary
Constructors Summary
Methods Summary
public voidaddCookie(org.apache.http.cookie.Cookie cookie)
Adds an {@link Cookie 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.

param
cookie the {@link Cookie cookie} to be added

public voidclear()
Clears all cookies.

public booleanclearExpired(java.util.Date date)
Removes all of {@link Cookie cookies} in this store that have expired by the specified {@link java.util.Date date}.

return
true if any cookies were purged.

public java.util.ListgetCookies()
Returns all cookies contained in this store.

return
all cookies