|
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
KeyValueConfiguration
,
PropertyConfiguration
Constructor Summary | |
AbstractConnectionConfiguration()
|
Method Summary | |
boolean |
getBoolean(java.lang.String name)
Returns boolean. |
boolean |
getBoolean(java.lang.String name,
boolean defaultValue)
Returns boolean. |
java.lang.Integer |
getInteger(java.lang.String name)
Get integer parameter from the config. |
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)
Get string parameter from the configuration. |
void |
setBoolean(java.lang.String name,
boolean value)
Set boolean parameter into config. |
void |
setInteger(java.lang.String name,
java.lang.Integer value)
Set integer parameter into config. |
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 |
getOption, setOption |
Constructor Detail |
public AbstractConnectionConfiguration()
Method Detail |
public java.lang.String getOption(java.lang.String name)
null
.
getOption
in interface ConnectionConfiguration
name
- name (key) of the parameter
public boolean getBoolean(java.lang.String name)
getBoolean
in interface ConnectionConfiguration
name
- name of an option
public boolean getBoolean(java.lang.String name, boolean defaultValue)
getBoolean
in interface ConnectionConfiguration
name
- name of an optiondefaultValue
- value returned when there is no such option or
option could not be parsed.
public java.lang.Integer getInteger(java.lang.String name)
getInteger
in interface ConnectionConfiguration
name
- name (key) of the parameter
public java.lang.Integer getInteger(java.lang.String name, java.lang.Integer defaultValue)
getInteger
in interface ConnectionConfiguration
name
- name (key) of the parameterdefaultValue
- value to return if parameter is not found
public void setBoolean(java.lang.String name, boolean value)
setBoolean
in interface ConnectionConfiguration
name
- name (key) of the parametervalue
- bool value to setpublic void setInteger(java.lang.String name, java.lang.Integer value)
setInteger
in interface ConnectionConfiguration
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 |