@Path(value="/microprofile-ext/memoryconfigsource") public class MemoryConfigApi extends Object
| Constructor and Description |
|---|
MemoryConfigApi() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
getAll(String configsource) |
javax.ws.rs.core.Response |
getConfigSource(String name) |
javax.ws.rs.core.Response |
getConfigSources() |
javax.ws.rs.core.Response |
getValue(String key,
String configsource) |
javax.ws.rs.core.Response |
removeValue(String key) |
javax.ws.rs.core.Response |
setValue(String key,
String value) |
@GET
@Path(value="/all")
@Produces(value="application/json")
public javax.ws.rs.core.Response getAll(@QueryParam(value="configsource")
String configsource)
@GET @Path(value="/sources") @Produces(value="application/json") public javax.ws.rs.core.Response getConfigSources()
@GET
@Path(value="/source/{name}")
@Produces(value="application/json")
public javax.ws.rs.core.Response getConfigSource(@PathParam(value="name")
String name)
@GET
@Path(value="/key/{key}")
@Produces(value="text/plain")
public javax.ws.rs.core.Response getValue(@PathParam(value="key")
String key,
@QueryParam(value="configsource")
String configsource)
@PUT
@Path(value="/key/{key}")
@Consumes(value="text/plain")
public javax.ws.rs.core.Response setValue(@PathParam(value="key")
String key,
String value)
@DELETE
@Path(value="/key/{key}")
public javax.ws.rs.core.Response removeValue(@PathParam(value="key")
String key)
Copyright © 2019. All rights reserved.