|
Configuration Platform SDK 7.6 API Reference | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.genesyslab.platform.commons.connection.AbstractConnectionConfiguration
com.genesyslab.platform.commons.connection.configuration.KeyValueConfiguration
The implementation of ConnectionConfiguration interface, which contains all values
in
Constructor Summary | |
KeyValueConfiguration(KeyValueCollection list)
Creates object and set all configuration using given KeyValueCollection object. |
|
KeyValueConfiguration(KVList list)
Deprecated. KVList is considered internal class and is subject to change or removal Use KeyValueConfiguration(KeyValueCollection) instead |
Method Summary | |
java.lang.Integer |
getInteger(java.lang.String name,
java.lang.Integer defaultValue)
Get integer parameter from the config. |
java.lang.String |
getOption(java.lang.String name,
java.lang.String defaultValue)
Get string parameter from the configuration. |
void |
setInteger(java.lang.String name,
java.lang.Integer value)
Set integer parameter into config. |
void |
setOption(java.lang.String name,
java.lang.String value)
Set string parameter into config. |
Methods inherited from class com.genesyslab.platform.commons.connection.AbstractConnectionConfiguration |
getBoolean, getBoolean, getInteger, getOption, setBoolean |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.genesyslab.platform.commons.connection.ConnectionConfiguration |
getBoolean, getBoolean, getInteger, getOption, setBoolean |
Constructor Detail |
public KeyValueConfiguration(KeyValueCollection list)
list
- collection to build configuration onpublic KeyValueConfiguration(KVList list)
KeyValueConfiguration(KeyValueCollection)
instead
list
- KVList to build configuration onMethod Detail |
public java.lang.String getOption(java.lang.String name, java.lang.String defaultValue)
getOption
in interface ConnectionConfiguration
name
- name (key) of the parameterdefaultValue
- value to return if parameter is not found
public java.lang.Integer getInteger(java.lang.String name, java.lang.Integer defaultValue)
getInteger
in interface ConnectionConfiguration
getInteger
in class AbstractConnectionConfiguration
name
- name (key) of the parameterdefaultValue
- value to return if parameter is not found
public void setOption(java.lang.String name, java.lang.String value)
setOption
in interface ConnectionConfiguration
name
- name (key) of the parametervalue
- string value to setpublic void setInteger(java.lang.String name, java.lang.Integer value)
setInteger
in interface ConnectionConfiguration
setInteger
in class AbstractConnectionConfiguration
name
- name (key) of the parametervalue
- int value to set
|
Configuration Platform SDK 7.6 API Reference | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |