public class ObConfig
extends java.lang.Object
The initialization functions are used to:
The ObConfig class includes methods to indicate the location of a configuration file, to initialize the Access Server API from the XML configuration file and to retrieve a value of a configuration item. Clients are expected to call initialize method once before calling any other API.
Constructor and Description |
---|
ObConfig()
Deprecated.
Default constructor for ObConfig Object
|
Modifier and Type | Method and Description |
---|---|
static java.util.Hashtable |
getAllItems()
Deprecated.
Returns all the configuration settings from the configuration file before
connecting to the server, or the configuration fetched from the server
|
static java.lang.String |
getItem(java.lang.String itemName)
Deprecated.
Returns the value for the specified configuration item name
|
static java.lang.String |
getNAPVersion()
Deprecated.
Returns NetPoint Access Protocol Version.
|
static int |
getNumberOfItems()
Deprecated.
Returns the count of configuration variables in configuration file.
|
static java.lang.String |
getSDKVersion()
Deprecated.
Returns Access Server API Version.
|
static void |
initialize()
Deprecated.
Initializes the Access Server API.
|
static void |
initialize(java.lang.String configLocation)
Deprecated.
Initializes the Access Server API.
|
static void |
shutdown()
Deprecated.
Disconnects the client from the server.
|
public static void shutdown()
public static int getNumberOfItems() throws ObAccessException
ObAccessException
- if method is invoked before successful
initializationpublic static java.util.Hashtable getAllItems() throws ObAccessException
ObAccessException
- If method is invoked before successful
initializationpublic static java.lang.String getItem(java.lang.String itemName) throws ObAccessException
itemName
- configuration item name whose value is being requestedObAccessException
- If method is invoked before successful
initializationpublic static void initialize() throws ObAccessException
ObAccessException
- In case of initialization failure.public static void initialize(java.lang.String configLocation) throws ObAccessException
configLocation
- The directory where AccessServer API is installed.
If configLocation is null, ASDK searches for configuration file at
location obtained from environment variable OBACCESS_INSTALL_DIR.ObAccessException
- In case of initialization failure.public static java.lang.String getSDKVersion()
public static java.lang.String getNAPVersion()