CookieDictionary

The CookieDictionary class represents the collection of Cookies that are sent to and received from the browser. Using the CookieDictionary, you can create, delete and retrieve Cookies, and enumerate through the set of Cookies.

Creating a new Cookie

To create a new Cookie, call the get method, passing in the new Cookie name. The get() method will create a new Cookie if one does not already exist with that name.


public class CookieDictionary extends java.util.Dictionary

implements aspcomp.Enumerator

{

public int getCount();

public Cookie getCookie(String name) throws ClassCastException;

//

// aspcomp.Enumerator Methods

//

public void reset();

//

// java.util.Enumeration Methods

//

public boolean hasMoreElements();

public Object nextElement() throws NoSuchElementException,

ClassCastException;

//

// java.lang.Cloneable Method

//

public Object clone();

//

// java.util.Dictionary Methods

//

public int size();

public boolean isEmpty();

public Enumeration keys();

public Enumeration elements();

public Object get(Object key);

public Object put(Object key, Object value);

public Object remove(Object key);

}