jasp.buildin
Class ICookiesDictionary

java.lang.Object
  |
  +--jasp.buildin.ICookiesDictionary

public class ICookiesDictionary
extends java.lang.Object

This class is a general interface wrapper that can wrap the following collections:


The Cookies collection sets the value of a cookie. If the specified cookie does not exist, it is created. If the cookie exists, it takes the new value and the old value is discarded.


Constructor Summary
ICookiesDictionary()
          Creates the ICookiesDictionary object.
 
Method Summary
 java.util.Enumeration elements()
          Retrieves an enumerator interface which can be used to iterate through the items in the collection.
 int getCount()
          Returns the number of cookies in the Cookies collection
 ASPCookie getItem(int v)
          Retrieves the specified cookie from Cookies colleciton.
 ASPCookie getItem(java.lang.String v)
          Retrieves the specified cookie from the Cookies colleciton.
 ASPCookie getItem(variant v)
          Retrieves the specified cookie from Cookies colleciton.
 java.lang.String getKey(int index)
          Retrieves a unique identifier for a Cookie in the Cookies colleciton.
 java.lang.String getKey(variant v)
          Retrieves a unique identifier for a Cookie in the Cookies colleciton.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ICookiesDictionary

public ICookiesDictionary()
Creates the ICookiesDictionary object.
Method Detail

elements

public java.util.Enumeration elements()
Retrieves an enumerator interface which can be used to iterate through the items in the collection.
Returns:
an enumeration.

getItem

public ASPCookie getItem(variant v)
                  throws java.lang.Exception
Retrieves the specified cookie from Cookies colleciton.
Parameters:
v - the name of the cookie or index.
Returns:
the value of the cookie.

getItem

public ASPCookie getItem(int v)
                  throws java.lang.Exception
Retrieves the specified cookie from Cookies colleciton.
Parameters:
v - the cookie index
Returns:
the value of the cookie.

getItem

public ASPCookie getItem(java.lang.String v)
Retrieves the specified cookie from the Cookies colleciton.
Parameters:
v - the name of the cookie
Returns:
the value of the cookie.

getKey

public java.lang.String getKey(variant v)
                        throws java.lang.Exception
Retrieves a unique identifier for a Cookie in the Cookies colleciton.
Parameters:
v - the cookie index
Returns:
the value of the cookie.

getKey

public java.lang.String getKey(int index)
                        throws java.lang.Exception
Retrieves a unique identifier for a Cookie in the Cookies colleciton.
Parameters:
v - the cookie index
Returns:
the value of the cookie.

getCount

public int getCount()
Returns the number of cookies in the Cookies collection
Returns:
the number of cookies.