Platform SDK Java 8.5 API Reference

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

java.lang.Object
  extended by com.genesyslab.platform.commons.connection.configuration.AbstractConnectionConfiguration
      extended by com.genesyslab.platform.commons.connection.configuration.PropertyConfiguration
All Implemented Interfaces:
ClientADDPOptions, ClientConnectionOptions, ConnectionConfiguration, java.lang.Cloneable

public class PropertyConfiguration
extends AbstractConnectionConfiguration

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


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.genesyslab.platform.commons.connection.configuration.ClientADDPOptions
ClientADDPOptions.AddpTraceMode
 
Field Summary
 
Fields inherited from interface com.genesyslab.platform.commons.connection.configuration.ClientConnectionOptions
IP_VERSION_4_6, IP_VERSION_6_4
 
Constructor Summary
PropertyConfiguration()
          Creates empty PropertyConfiguration object.
PropertyConfiguration(java.util.Properties props)
          Creates object and set all configuration using given Hashtable object.
PropertyConfiguration(java.lang.String uriQueryString)
          Creates object and set all configuration using given URI query string.
 
Method Summary
 PropertyConfiguration clone()
           
 java.lang.String getOption(java.lang.String name, java.lang.String defaultValue)
          Gets string parameter from the configuration.
 boolean isEmpty()
          Tests if this properties set does not contain specific values.
 void setOption(java.lang.String name, java.lang.String value)
          Sets string parameter into config.
 java.lang.String toString()
           
 
Methods inherited from class com.genesyslab.platform.commons.connection.configuration.AbstractConnectionConfiguration
getAddpClientTimeout, getAddpServerTimeout, getAddpTrace, getAddpTraceMode, getBoolean, getBoolean, getInteger, getInteger, getIPVersion, getLocalBindingHost, getLocalBindingPort, getOption, getStringsEncoding, getTLSVersion, isIPv6Enabled, isTLSEnabled, isUseAddp, setAddpClientTimeout, setAddpServerTimeout, setAddpTrace, setAddpTraceMode, setBoolean, setInteger, setIPv6Enabled, setIPVersion, setLocalBindingHost, setLocalBindingPort, setStringsEncoding, setTLSEnabled, setTLSVersion, setUseAddp
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PropertyConfiguration

public PropertyConfiguration()
Creates empty PropertyConfiguration object.


PropertyConfiguration

public PropertyConfiguration(java.util.Properties props)
Creates object and set all configuration using given Hashtable object.

Parameters:
props - collection with configuration properties

PropertyConfiguration

public PropertyConfiguration(java.lang.String uriQueryString)
Creates object and set all configuration using given URI query string.

Parameters:
uriQueryString - decoded URI query, a string consisting of key/value pairs in the following form: "key1=value1&key2=value2&key3=value3".
See Also:
URI.getQuery()
Method Detail

setOption

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

Parameters:
name - name (key) of the parameter
value - string value to set

getOption

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

Parameters:
name - name (key) of the parameter
defaultValue - value to return if parameter is not found
Returns:
value of the parameter

isEmpty

public boolean isEmpty()
Tests if this properties set does not contain specific values.

Returns:
true if this hashtable maps no keys to values; false otherwise.

clone

public PropertyConfiguration clone()
Specified by:
clone in interface ConnectionConfiguration
Overrides:
clone in class AbstractConnectionConfiguration

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

Platform SDK Java 8.5 API Reference

Send comments on this topicTechpubs.webadmin@genesys.com.
Document version: 8.5.302.00
Copyright © 2006–2017 Genesys Telecommunications Laboratories, Inc. All rights reserved.