gnu.inet.http

Class SimpleCookieManager

Implemented Interfaces:
CookieManager

public class SimpleCookieManager
extends java.lang.Object
implements CookieManager

A simple non-persistent cookie manager. This class can be extended to provide cookie persistence.

Author:
Chris Burdess

Nested Class Summary

Field Summary

protected java.util.Map
cookies
The cookie cache.

Constructor Summary

SimpleCookieManager()
Constructor.

Method Summary

Cookie[]
getCookies(java.lang.String host, boolean secure, java.lang.String path)
void
setCookie(Cookie cookie)

Field Details

cookies

protected java.util.Map cookies
The cookie cache. This is a dictionary mapping domains to maps of cookies by name.

Constructor Details

SimpleCookieManager

public SimpleCookieManager()
Constructor.

Method Details

getCookies

public Cookie[] getCookies(java.lang.String host,
                           boolean secure,
                           java.lang.String path)
Specified by:
getCookies in interface CookieManager


setCookie

public void setCookie(Cookie cookie)
Specified by:
setCookie in interface CookieManager


© Copyright 2003 The Free Software Foundation, all rights reserved