public class ConfigValueHandler extends AbstractApiHandler
mapper| Constructor and Description |
|---|
ConfigValueHandler(String cloudconductorUrl) |
| Modifier and Type | Method and Description |
|---|---|
void |
addConfig(String template,
String key,
String value) |
void |
addConfig(String template,
String service,
String key,
String value) |
Map<String,String> |
getConfig(String template) |
Map<String,String> |
getConfig(String template,
String service) |
String |
getConfig(String template,
String service,
String key) |
void |
removeConfig(String template,
String key) |
void |
removeConfig(String template,
String service,
String key) |
_delete, _get, _get, _post, _post, _post, _put, _put, _put, _put, assertSuccess, dataFromResponse, getSetType, objectFromResponse, objectFromResponse, pathGenerator, request, request, requestpublic ConfigValueHandler(String cloudconductorUrl)
cloudconductorUrl - the config server urlpublic Map<String,String> getConfig(String template) throws CloudConductorException
template - the template nameCloudConductorException - Error indicating connection or data problemspublic Map<String,String> getConfig(String template, String service) throws CloudConductorException
template - the template nameservice - the serice nameCloudConductorException - Error indicating connection or data problemspublic String getConfig(String template, String service, String key) throws CloudConductorException
template - the template nameservice - the serice namekey - the config keyCloudConductorException - Error indicating connection or data problemspublic void addConfig(String template, String key, String value) throws CloudConductorException
template - the template namekey - the config keyvalue - the config valueCloudConductorException - Error indicating connection or data problemspublic void addConfig(String template, String service, String key, String value) throws CloudConductorException
template - the template nameservice - the service namekey - the config keyvalue - the config valueCloudConductorException - Error indicating connection or data problemspublic void removeConfig(String template, String key) throws CloudConductorException
template - the template namekey - the config keyCloudConductorException - Error indicating connection or data problemspublic void removeConfig(String template, String service, String key) throws CloudConductorException
template - the template nameservice - the service namekey - the config keyCloudConductorException - Error indicating connection or data problemsCopyright © 2014-2016 Cinovo AG. All Rights Reserved.