jasp.buildin
Class Application

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

public class Application
extends java.lang.Object

You can use the Application object to share information among all users of a given application. An ASP-based application is defined as all the .asp files in a virtual directory and its subdirectories. Because the Application object can be shared by more than one user, there are Lock and Unlock methods to ensure that multiple users do not try to alter a property simultaneously.


Constructor Summary
Application()
           
 
Method Summary
static jasp.buildin.ASPApplication application()
          Returns an Application instance.
static IVariantDictionary Contents()
          Contains all of the items that have been added to the application through script commands.
static variant Contents(java.lang.String key)
          Gets the member of the Application Contents Collection.
static ASPGlobal getGlobalASA()
          If the global.ASA does exist, return the instance of the global class for Global.asa
static variant getItem(java.lang.String key)
          Gets the member of the Application Contents Collection.
static void lock()
          Prevents other clients from modifying Application object properties.
static void setContents(java.lang.String key, variant obj)
          Sets an item to Contents collection.
static void setItem(java.lang.String key, boolean value)
          Assigns a member of Application Contents collection.
static void setItem(java.lang.String key, double value)
          Assigns a member of Application Contents collection.
static void setItem(java.lang.String key, int value)
          Assigns a member of Application Contents collection.
static void setItem(java.lang.String key, java.lang.Object value)
          Assigns a member of Application Contents Collection.
static void setItem(java.lang.String key, java.lang.String value)
          Assigns a member of Application Contents collection.
static void setObject(java.lang.String key, java.lang.Object obj)
          Sets a member of Application Contents collection.
static IVariantDictionary StaticObjects()
          Contains all of the objects added to the application with the <OBJECT> tag.
static variant StaticObjects(java.lang.String key)
          Gets the members of the Application StaticObjects Collection.
static void unlock()
          Allows other clients to modify Application object properties.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Application

public Application()
Method Detail

Contents

public static IVariantDictionary Contents()
Contains all of the items that have been added to the application through script commands.

StaticObjects

public static IVariantDictionary StaticObjects()
Contains all of the objects added to the application with the <OBJECT> tag.

application

public static jasp.buildin.ASPApplication application()
Returns an Application instance.

StaticObjects

public static variant StaticObjects(java.lang.String key)
Gets the members of the Application StaticObjects Collection.
Parameters:
key - the name of the member.
Returns:
the value of the member.

Contents

public static variant Contents(java.lang.String key)
Gets the member of the Application Contents Collection.
Parameters:
key - the name of the member.
Returns:
the value of the member.

setContents

public static void setContents(java.lang.String key,
                               variant obj)
Sets an item to Contents collection.
Parameters:
key - the name of the item
the - value of the item.

lock

public static void lock()
Prevents other clients from modifying Application object properties.

unlock

public static void unlock()
Allows other clients to modify Application object properties.

getItem

public static variant getItem(java.lang.String key)
Gets the member of the Application Contents Collection.
Parameters:
key - the name of the member.
Returns:
the value of the member.

setItem

public static void setItem(java.lang.String key,
                           java.lang.Object value)
                    throws java.lang.Exception
Assigns a member of Application Contents Collection.
Parameters:
key - the name of the member.
value - the new value of the member.

setItem

public static void setItem(java.lang.String key,
                           int value)
Assigns a member of Application Contents collection.
Parameters:
key - the name of the member.
value - the new value of the member.

setItem

public static void setItem(java.lang.String key,
                           double value)
Assigns a member of Application Contents collection.
Parameters:
key - the name of the member.
value - the new value of the member.

setItem

public static void setItem(java.lang.String key,
                           boolean value)
Assigns a member of Application Contents collection.
Parameters:
key - the name of the member.
value - the new value of the member.

setItem

public static void setItem(java.lang.String key,
                           java.lang.String value)
Assigns a member of Application Contents collection.
Parameters:
key - the name of the member.
value - the new value of the member.

setObject

public static void setObject(java.lang.String key,
                             java.lang.Object obj)
                      throws java.lang.Exception
Sets a member of Application Contents collection.
Parameters:
key - the name of the member.
obj - the new value of the member.

getGlobalASA

public static ASPGlobal getGlobalASA()
If the global.ASA does exist, return the instance of the global class for Global.asa