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 | Description |
---|---|
MapPropertyReader(java.util.Map<java.lang.String,java.lang.String> map) |
Modifier and Type | Method | Description |
---|---|---|
java.lang.String |
getProperty(java.lang.String key) |
Extracts value of the option specified by
key |
public MapPropertyReader(java.util.Map<java.lang.String,java.lang.String> map)
public java.lang.String getProperty(java.lang.String key)
PropertyReader
key
getProperty
in interface PropertyReader
key
- Name of the option to extractSend comments on this topicTechpubs.webadmin@genesys.com.
Document version: 9.0.006.00
Copyright © 2006–2019 Genesys Telecommunications Laboratories, Inc. All rights reserved.