Platform SDK Java 8.5 API Reference

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

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

public class MapPropertyReader
extends java.lang.Object
implements PropertyReader

Implementation of PropertyReader that extracts options from Map instances.

Example:

 Map tlsProps = new HashMap();
 tlsProps.put("tls", "1");
 tlsProps.put("certificate", "client-cert.pem");
 PropertyReader reader = new MapPropertyReader(tlsProps);
 //...
 TLSConfiguration tlsClientConf = TLSConfigurationParser.parseTlsConfiguration(reader, true);
 


Constructor Summary
MapPropertyReader(java.util.Map<java.lang.String,java.lang.String> map)
           
 
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

MapPropertyReader

public MapPropertyReader(java.util.Map<java.lang.String,java.lang.String> map)
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.