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 Cookie s 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)
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.
public
abstract
void
clear
()
public
abstract
boolean
clearExpired
(Date date)
Removes all of Cookie
s in this store that have expired by
the specified java.util.Date.
Returns
- true if any cookies were purged.
public
abstract
List<Cookie>
getCookies
()
Returns all cookies contained in this store.