|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.paypal.base.ConfigManager
public final class ConfigManager
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)
| Method Summary | |
|---|---|
static Properties |
combineDefaultProperties(Properties receivedProperties)
Combines some Properties with Default Properties |
Map<String,String> |
getConfigurationMap()
Constructs a Map object from the underlying Properties. |
static Properties |
getDefaultProperties()
Returns the Default Properties of System Configuration |
static Map<String,String> |
getDefaultSDKMap()
Returns a Map view of Default Properties |
static ConfigManager |
getInstance()
Singleton accessor method |
Set<String> |
getNumOfAcct()
Deprecated. |
String |
getValue(String key)
Deprecated. |
Map<String,String> |
getValuesByCategory(String category)
Deprecated. |
String |
getValueWithDefault(String key,
String defaultValue)
Deprecated. |
boolean |
isPropertyLoaded()
Deprecated. |
void |
load(InputStream is)
Deprecated. use PayPalResource.initConfig() instead |
void |
load(Properties properties)
Deprecated. use PayPalResource.initConfig() instead |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static ConfigManager getInstance()
public static Properties getDefaultProperties()
Properties of System Configuration
Propertiespublic static Map<String,String> getDefaultSDKMap()
Map view of Default Properties
Map view of Default Propertiespublic static Properties combineDefaultProperties(Properties receivedProperties)
Properties with Default Properties
receivedProperties - Properties used to combine with Default Properties
Properties
public void load(InputStream is)
throws IOException
PayPalResource.initConfig() instead
InputStream
is - InputStream
IOExceptionpublic void load(Properties properties)
PayPalResource.initConfig() instead
Properties
instance
properties - Properties instancepublic Map<String,String> getConfigurationMap()
Map object from the underlying Properties.
The Properties object is loaded for 'sdk_config.properties' file
in the classpath
Mappublic String getValue(String key)
key - String key
public String getValueWithDefault(String key,
String defaultValue)
Properties.getProperty(key, defaultValue)
key - String key to search in properties filedefaultValue - Default value to be sent in case of a miss
public Map<String,String> getValuesByCategory(String category)
category -
public Set<String> getNumOfAcct()
Set of Accountspublic boolean isPropertyLoaded()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||