Platform SDK Java 8.5 API Reference

com.genesyslab.platform.commons.connection.tls
Class PropertiesReader

java.lang.Object
  extended by com.genesyslab.platform.commons.connection.tls.PropertiesReader
All Implemented Interfaces:
PropertyReader

public class PropertiesReader
extends java.lang.Object
implements PropertyReader

Implementation of PropertyReader that extracts options from Properties instances.

Example:

 Properties tlsProps = new Properties();
 tlsProps.load(new FileInputStream("tls.properties"));
 PropertyReader reader = new PropertiesReader(tlsProps);
 //...
 TLSConfiguration tlsClientConf = TLSConfigurationParser.parseTlsConfiguration(reader, true);
 


Constructor Summary
PropertiesReader(java.util.Properties props)
           
 
Method Summary
 java.lang.String getProperty(java.lang.String key)
          Extracts value of the option specified by key
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertiesReader

public PropertiesReader(java.util.Properties props)
Method Detail

getProperty

public java.lang.String getProperty(java.lang.String key)
Description copied from interface: PropertyReader
Extracts value of the option specified by key

Specified by:
getProperty in interface PropertyReader
Parameters:
key - Name of the option to extract
Returns:
Option value

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.