gnu.inet.http
Interface CookieManager
- SimpleCookieManager
public interface CookieManager
Cookie manager interface.
If an application wants to handle cookies, they should implement this
interface and register the instance with each HTTPConnection they use.
- Chris Burdess
Cookie[] | getCookies(java.lang.String host, boolean secure, java.lang.String path) - Retrieves the cookies matching the specified criteria.
|
void | setCookie(Cookie cookie) - Stores a cookie in the cookie manager.
|
getCookies
public Cookie[] getCookies(java.lang.String host,
boolean secure,
java.lang.String path)
Retrieves the cookies matching the specified criteria.
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.
cookie
- the cookie to store
© Copyright 2003 The Free Software Foundation,
all rights reserved