gnu.inet.http

Interface CookieManager

Known Implementing Classes:
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.

Method Summary

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.

Method Details

getCookies

public Cookie[] getCookies(String host,
                           boolean secure,
                           String path)
Retrieves the cookies matching the specified criteria.
Parameters:
host - the host name
secure - whether the connection is secure
path - the path to access

setCookie

public void setCookie(Cookie cookie)
Stores a cookie in the cookie manager.
Parameters:
cookie - the cookie to store