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.
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.
|
getCookies
public Cookie[] getCookies(String host,
boolean secure,
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