Interface ConfParamService
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
ConfParamServiceImpl
REST operations for Self Keymaster's conf params.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the value(s) of the given conf parameter, if defined.list()
Returns the full list of defined conf parameters, with values.void
Deletes the conf parameter matching the provided key.void
set
(@NotNull String key, InputStream value) Sets the value(s) for the given conf parameter.
-
Method Details
-
list
Returns the full list of defined conf parameters, with values.- Returns:
- full list of defined conf parameters, with values
-
get
@GET @Path("{key}") @Produces("application/json") Response get(@NotNull @PathParam("key") @NotNull String key) Returns the value(s) of the given conf parameter, if defined.- Parameters:
key
- conf parameter key- Returns:
- the value(s) of the given conf parameter, if defined
-
set
@POST @Path("{key}") @Consumes("application/json") @Produces("application/json") void set(@NotNull @PathParam("key") @NotNull String key, InputStream value) Sets the value(s) for the given conf parameter.- Parameters:
key
- conf parameter keyvalue
- conf parameter value(s)
-
remove
@DELETE @Path("{key}") @Produces("application/json") void remove(@NotNull @PathParam("key") @NotNull String key) Deletes the conf parameter matching the provided key.- Parameters:
key
- conf parameter key
-