@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() |
javax.ws.rs.core.Response |
getConfigSources() |
javax.ws.rs.core.Response |
getValue(String key) |
void |
init() |
javax.ws.rs.core.Response |
removeValue(String key) |
javax.ws.rs.core.Response |
setValue(String key,
String value) |
@PostConstruct public void init()
@GET @Path(value="/all") @Produces(value="application/json") public javax.ws.rs.core.Response getAll()
@GET @Path(value="/sources") @Produces(value="application/json") public javax.ws.rs.core.Response getConfigSources()
@GET
@Path(value="/key/{key}")
@Produces(value="text/plain")
public javax.ws.rs.core.Response getValue(@PathParam(value="key")
String key)
@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 © 2018. All rights reserved.