java.lang.Object | +--java.util.Dictionary | +--java.util.Hashtable | +--java.util.Properties | +--com.ibm.commerce.server.ConfigProperties
Gets the properties values from property cache. The property cache is constructed from the information in the configuration xml file. The key for the properties is all the hierarchy path from "InstanceProperties" layer in the configuration file, plus the property attribute name and separated with "/", for example, "RuleServices/RuleService/name".
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT IBM copyright notice field. |
protected
java.lang.String |
merchantKey |
Fields inherited from class java.util.Properties |
defaults |
Method Summary | |
---|---|
void |
addWebModule(WebModuleConfig config) Adds a web modules configuration. |
java.util.Vector |
getAllValues(java.lang.String key) Returns all values from the configuration file as a Vector |
java.lang.String |
getMerchantKey() Gets the merchant key |
java.lang.String |
getSeparator() Gets a separator character. |
java.lang.String |
getValue(java.lang.String key) Returns the first value from the configuration file as a string |
java.lang.String |
getValue(java.lang.String key, java.lang.String def) Returns the first value from the configuration file as a string |
WebModuleConfig |
getWebModule(java.lang.String name) Gets a web module configuation given the web module name. |
WebModuleConfig |
getWebModuleByContextPath(java.lang.String path) Returns a web module configuation given a context path. |
java.lang.String |
getWebServerAlias(java.lang.String key) Returns the value of a web server alias. |
void |
setMerchantKey(java.lang.String key) Gets the merchant key. |
void |
setWebModule(java.lang.String name,
WebModuleConfig config) Sets the web modules configuration by name. |
void |
setWebModuleByContextPath(java.lang.String contextPath,
WebModuleConfig config) Sets the web modules configuration for a context path. |
void |
setWebServerAlias(java.lang.String name,
java.lang.String value) Sets the value of a web server alias. |
static
ConfigProperties |
singleton() Gets a singleton ConfigProperties object. |
Methods inherited from class java.util.Properties |
getProperty, getProperty, list, list, load, propertyNames, save,
setProperty, store |
Methods inherited from class java.util.Hashtable |
clear, clone, contains, containsKey, containsValue, elements,
entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash,
remove, size, toString, values |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait,
wait |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
protected java.lang.String merchantKey
Method Detail |
---|
public java.util.Vector getAllValues(java.lang.String key)
key
- the key to find a value for, the format is hierarchy
path1 + "/" + path2 .. + "/" + nameOfAttributepublic java.lang.String getMerchantKey()
public java.lang.String getSeparator()
public java.lang.String getValue(java.lang.String key)
key
- the key to find a value for, the format is hierarchy
path1 + "/" + path2 .. + "/" + nameOfAttributepublic java.lang.String getValue(java.lang.String key, java.lang.String def)
key
- the key to find a value fordef
- the default value if no parameter with that key is
foundpublic java.lang.String getWebServerAlias(java.lang.String key)
key
- name of web modulepublic void setMerchantKey(java.lang.String key)
public void setWebServerAlias(java.lang.String name, java.lang.String value)
name
- name of alias,value
- value of alias,public static ConfigProperties singleton()
public WebModuleConfig getWebModuleByContextPath(java.lang.String path)
path
- the context path for the web modulepublic void setWebModuleByContextPath(java.lang.String contextPath, WebModuleConfig config)
config
- the web module configurationpublic WebModuleConfig getWebModule(java.lang.String name)
name
- web module namepublic void setWebModule(java.lang.String name, WebModuleConfig config)
name
- web module nameconfig
- the web module configurationpublic void addWebModule(WebModuleConfig config)
config
- the web module configuration