com.genesyslab.platform.commons.connection.tls
Class PropertiesReader
java.lang.Object
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);
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 |
PropertiesReader
public PropertiesReader(java.util.Properties props)
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
Send comments on this topicTechpubs.webadmin@genesys.com.
Document version: 8.5.302.00
Copyright © 2006–2017 Genesys Telecommunications Laboratories, Inc. All rights reserved.