gnu.inet.http
Interface CookieManager

All 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.

Author:
Chris Burdess

Method Summary
 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.
 

Method Detail

setCookie

void setCookie(Cookie cookie)
Stores a cookie in the cookie manager.

Parameters:
cookie - the cookie to store

getCookies

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


© Copyright 2003 The Free Software Foundation, all rights reserved