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)
CookieStore
findCookies
in interface CookieStore
destination
- the destination representing the domainpath
- the request pathpublic boolean addCookie(Destination destination, HttpCookie cookie)
CookieStore
addCookie
in interface CookieStore
destination
- the destination the cookie should belong tocookie
- the cookie to addpublic void clear()
CookieStore
clear
in interface CookieStore
Copyright © 1995-2012 Mort Bay Consulting. All Rights Reserved.