Configuration Platform SDK 7.6 API Reference

com.genesyslab.platform.commons.connection.configuration
Class KeyValueConfiguration

java.lang.Object
  extended bycom.genesyslab.platform.commons.connection.AbstractConnectionConfiguration
      extended bycom.genesyslab.platform.commons.connection.configuration.KeyValueConfiguration
All Implemented Interfaces:
ConnectionConfiguration

public class KeyValueConfiguration
extends AbstractConnectionConfiguration
implements ConnectionConfiguration

The implementation of ConnectionConfiguration interface, which contains all values in KeyValueCollection. It can be instantiated with any KeyValueCollection instance.


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

KeyValueConfiguration

public KeyValueConfiguration(KeyValueCollection list)
Creates object and set all configuration using given KeyValueCollection object.

Parameters:
list - collection to build configuration on

KeyValueConfiguration

public KeyValueConfiguration(KVList list)
Deprecated. KVList is considered internal class and is subject to change or removal Use KeyValueConfiguration(KeyValueCollection) instead

Creates configuration object based on KV list.

Parameters:
list - KVList to build configuration on
Method Detail

getOption

public java.lang.String getOption(java.lang.String name,
                                  java.lang.String defaultValue)
Get string parameter from the configuration.

Specified by:
getOption in interface ConnectionConfiguration
Parameters:
name - name (key) of the parameter
defaultValue - value to return if parameter is not found
Returns:
value of the parameter

getInteger

public java.lang.Integer getInteger(java.lang.String name,
                                    java.lang.Integer defaultValue)
Get integer parameter from the config.

Specified by:
getInteger in interface ConnectionConfiguration
Overrides:
getInteger in class AbstractConnectionConfiguration
Parameters:
name - name (key) of the parameter
defaultValue - value to return if parameter is not found
Returns:
value of the parameter

setOption

public void setOption(java.lang.String name,
                      java.lang.String value)
Set string parameter into config.

Specified by:
setOption in interface ConnectionConfiguration
Parameters:
name - name (key) of the parameter
value - string value to set

setInteger

public void setInteger(java.lang.String name,
                       java.lang.Integer value)
Set integer parameter into config.

Specified by:
setInteger in interface ConnectionConfiguration
Overrides:
setInteger in class AbstractConnectionConfiguration
Parameters:
name - name (key) of the parameter
value - int value to set

Configuration Platform SDK 7.6 API Reference

Send comments on this topic.
Copyright © 2006–2008 Genesys Telecommunication Laboratories, Inc. All rights reserved.