Also: HttpClient
public interface

CookieStore

org.apache.http.client.CookieStore
Known Indirect Subclasses

Class Overview

This interface represents an abstract store for Cookie objects.

Summary

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

Public Methods

public abstract void addCookie (Cookie cookie)

Also: HttpClient

Adds an 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 abstract void clear ()

Also: HttpClient

Clears all cookies.

public abstract boolean clearExpired (Date date)

Also: HttpClient

Removes all of Cookies in this store that have expired by the specified java.util.Date.

Returns
  • true if any cookies were purged.

public abstract List<Cookie> getCookies ()

Also: HttpClient

Returns all cookies contained in this store.

Returns
  • all cookies