public class HttpCookieStore extends Object implements CookieStore
| Constructor and Description |
|---|
HttpCookieStore() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addCookie(Destination destination,
HttpCookie cookie)
Adds the given cookie to this store for the given destination.
|
void |
clear()
Removes all the cookies from this store.
|
List<HttpCookie> |
findCookies(Destination destination,
String path)
Returns the non-expired cookies that match the given destination and path,
recursively matching parent paths (for the same domain) and parent domains
(for the root path).
|
public List<HttpCookie> findCookies(Destination destination, String path)
CookieStorefindCookies in interface CookieStoredestination - the destination representing the domainpath - the request pathpublic boolean addCookie(Destination destination, HttpCookie cookie)
CookieStoreaddCookie in interface CookieStoredestination - the destination the cookie should belong tocookie - the cookie to addpublic void clear()
CookieStoreclear in interface CookieStoreCopyright © 1995-2012 Mort Bay Consulting. All Rights Reserved.