@Path(value="/config")
public interface IConfigValue
| Modifier and Type | Method and Description |
|---|---|
void |
delete(String template,
String key)
Delete a key-value pair from the configuration of a template
|
void |
delete(String template,
String service,
String key)
Delete a key-value pair from the configuration of a service within a template
|
Map<String,String> |
get(String template)
Returns configuration of the given template as Key-Value Pairs
|
Map<String,String> |
get(String template,
String service)
Returns configuration of the given service within the template as Key-Value Pairs
|
String |
get(String template,
String service,
String key)
Returns the value for a key of the given service within the template as Key-Value Pairs
|
void |
save(String template,
KeyValue pair)
Adds a new key-value pair to the configuration of a template
|
void |
save(String template,
String service,
KeyValue pair)
Adds a new key-value pair to the configuration of a service within a template
|
@GET
@Path(value="/{template}")
@Produces(value={"application/json;charset=UTF-8","application/x-javaargs","application/x-javaprops"})
Map<String,String> get(@PathParam(value="template")
String template)
template - the template name@GET
@Path(value="/{template}/{service}")
@Produces(value={"application/json;charset=UTF-8","application/x-javaargs","application/x-javaprops"})
Map<String,String> get(@PathParam(value="template")
String template,
@PathParam(value="service")
String service)
template - the template nameservice - the name of the service@GET
@Path(value="/{template}/{service}/{key}")
@Produces(value={"application/json;charset=UTF-8","application/x-javaargs","application/x-javaprops"})
String get(@PathParam(value="template")
String template,
@PathParam(value="service")
String service,
@PathParam(value="key")
String key)
template - the template nameservice - the name of the servicekey - the name of the key@PUT
@Path(value="/{template}/{service}")
@Consumes(value="application/json;charset=UTF-8")
void save(@PathParam(value="template")
String template,
@PathParam(value="service")
String service,
KeyValue pair)
template - the template nameservice - the name of the servicepair - the key value pair@PUT
@Path(value="/{template}")
@Consumes(value="application/json;charset=UTF-8")
void save(@PathParam(value="template")
String template,
KeyValue pair)
template - the template namepair - the key value pair@DELETE
@Path(value="/{template}/{key}")
void delete(@PathParam(value="template")
String template,
@PathParam(value="key")
String key)
template - the template namekey - the key@DELETE
@Path(value="/{template}/{service}/{key}")
void delete(@PathParam(value="template")
String template,
@PathParam(value="service")
String service,
@PathParam(value="key")
String key)
template - the template nameservice - the name of the servicekey - the keyCopyright © 2013-2014 Cinovo AG. All Rights Reserved.