Class KeyValNameSpaceController
java.lang.Object
com.kosdev.kos.commons.core.service.keyval.KeyValNameSpaceController
Controller that can wrap a
KeyValNameSpace and make it accessible
via endpoints. This is a convenience class for applications where an external
system just needs key/val access to a custom name space. The standard key/val
endpoints can also be used by specifying the name space in each request, but
this allows a custom set of endpoints for a given name space.- Since:
- 1
- Version:
- 1
-
Constructor Summary
ConstructorsConstructorDescriptionKeyValNameSpaceController(KeyValNameSpace storageNameSpace) Create the controller with the specified name space. -
Method Summary
-
Constructor Details
-
KeyValNameSpaceController
Create the controller with the specified name space.- Parameters:
storageNameSpace- the storage name space to use
-
-
Method Details
-
getKey
-
setKey
public void setKey(@PathVariable("key") String key, @RequestParam(value="encrypt",defaultValue="false") boolean encrypt, @RequestBody String body) -
removeKey
-
getAll
-
deleteAll
public void deleteAll()
-