com.genesyslab.platform.commons.connection.tls
Class KVListPropertyReader
java.lang.Object
com.genesyslab.platform.commons.connection.tls.KVListPropertyReader
- All Implemented Interfaces:
- PropertyReader
public class KVListPropertyReader
- extends java.lang.Object
- implements PropertyReader
Implementation of PropertyReader
that extracts options from
KVList
instances.
Example:
KVList tlsProps = new KeyValueCollection();
tlsProps.addObject("tls", "1");
tlsProps.addObject("certificate", "client-cert.pem");
PropertyReader reader = new KVListPropertyReader(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 |
KVListPropertyReader
public KVListPropertyReader(KVList kvl)
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.