public final class ConfigManager
extends java.lang.Object
ConfigManager loads configuration from 'sdk_config.properties'
file found in the classpath. There are certain default parameters that the
system chooses to use if not seen a part of the configuration. They are
enumerated below with the defaults is parenthesis
http.ConnectionTimeOut(5000 ms), http.Retry(2), http.ReadTimeOut(30000 ms),
http.MaxConnections(100), http.IPAddress(127.0.0.1),
http.GoogleAppEngine(false)| Modifier and Type | Method and Description |
|---|---|
static java.util.Properties |
combineDefaultProperties(java.util.Properties receivedProperties)
Combines some
Properties with Default Properties |
java.util.Map<java.lang.String,java.lang.String> |
getConfigurationMap()
Constructs a
Map object from the underlying Properties. |
static java.util.Properties |
getDefaultProperties()
Returns the Default
Properties of System Configuration |
static java.util.Map<java.lang.String,java.lang.String> |
getDefaultSDKMap()
Returns a
Map view of Default Properties |
static ConfigManager |
getInstance()
Singleton accessor method
|
java.util.Set<java.lang.String> |
getNumOfAcct()
Deprecated.
This code is not used anymore. This was used for older sdk_config.properties parsing.
|
java.lang.String |
getValue(java.lang.String key)
Deprecated.
This code was used for older integrations. Not valid anymore. To be removed in the next major release.
|
java.util.Map<java.lang.String,java.lang.String> |
getValuesByCategory(java.lang.String category)
Deprecated.
This code was used for older integrations. Not valid anymore. To be removed in the next major release.
|
java.lang.String |
getValueWithDefault(java.lang.String key,
java.lang.String defaultValue)
Deprecated.
This code was used for older integrations. Not valid anymore. To be removed in the next major release.
|
boolean |
isPropertyLoaded()
Deprecated.
This code was used for older integrations. Not valid anymore. To be removed in the next major release.
|
void |
load(java.io.InputStream is)
Deprecated.
This code was used for older integrations. Not valid anymore. To be removed in the next major release.
|
void |
load(java.util.Properties properties)
Deprecated.
This code was used for older integrations. Not valid anymore. To be removed in the next major release.
|
public static ConfigManager getInstance()
public static java.util.Properties getDefaultProperties()
Properties of System ConfigurationPropertiespublic static java.util.Map<java.lang.String,java.lang.String> getDefaultSDKMap()
Map view of Default PropertiesMap view of Default Propertiespublic static java.util.Properties combineDefaultProperties(java.util.Properties receivedProperties)
Properties with Default PropertiesreceivedProperties - Properties used to combine with Default PropertiesPropertiespublic void load(java.io.InputStream is)
throws java.io.IOException
InputStreamis - InputStreamjava.io.IOExceptionpublic void load(java.util.Properties properties)
Properties
instanceproperties - Properties instancepublic java.util.Map<java.lang.String,java.lang.String> getConfigurationMap()
Map object from the underlying Properties.
The Properties object is loaded for 'sdk_config.properties' file
in the classpathMappublic java.lang.String getValue(java.lang.String key)
key - String keypublic java.lang.String getValueWithDefault(java.lang.String key,
java.lang.String defaultValue)
Properties.getProperty(key, defaultValue)key - String key to search in properties filedefaultValue - Default value to be sent in case of a misspublic java.util.Map<java.lang.String,java.lang.String> getValuesByCategory(java.lang.String category)
category - public java.util.Set<java.lang.String> getNumOfAcct()
Set of Accountspublic boolean isPropertyLoaded()