Platform SDK Java 8.5 API Reference

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

java.lang.Object
  extended by 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);
 


Constructor Summary
KVListPropertyReader(KVList kvl)
           
 
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

KVListPropertyReader

public KVListPropertyReader(KVList kvl)
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.