gnu.inet.http
Class SimpleCookieManager
java.lang.Object
gnu.inet.http.SimpleCookieManager
- CookieManager
public class SimpleCookieManager
extends java.lang.Object
A simple non-persistent cookie manager. This class can be extended to
provide cookie persistence.
- Chris Burdess
protected Map | cookies - The cookie cache.
|
Cookie[] | getCookies(String host, boolean secure, String path) - Retrieves the cookies matching the specified criteria.
|
void | setCookie(Cookie cookie) - Stores a cookie in the cookie manager.
|
cookies
protected Map cookies
The cookie cache.
This is a dictionary mapping domains to maps of cookies by name.
SimpleCookieManager
public SimpleCookieManager()
Constructor.
getCookies
public Cookie[] getCookies(String host,
boolean secure,
String path)
Retrieves the cookies matching the specified criteria.
- getCookies in interface CookieManager
host
- the host namesecure
- whether the connection is securepath
- the path to access
setCookie
public void setCookie(Cookie cookie)
Stores a cookie in the cookie manager.
- setCookie in interface CookieManager
cookie
- the cookie to store
© Copyright 2003 The Free Software Foundation,
all rights reserved