Package org.rostore.service
Class KeyValueService
java.lang.Object
org.rostore.service.KeyValueService
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.Response
containerList
(String key) jakarta.ws.rs.core.Response
void
get
(String containerName, String key, jakarta.servlet.http.HttpServletResponse servletResponse, jakarta.servlet.http.HttpServletRequest servletRequest) jakarta.ws.rs.core.Response
void
put
(String containerName, String key, String options, Long ttl, Long unixEol, Long versionHeader, jakarta.servlet.http.HttpServletResponse servletResponse, jakarta.servlet.http.HttpServletRequest servletRequest)
-
Constructor Details
-
KeyValueService
public KeyValueService()
-
-
Method Details
-
put
@POST @Produces("application/json") @Consumes("*/*") @Path("/container/{container}/key/{key}") public void put(@PathParam("container") String containerName, @PathParam("key") String key, @HeaderParam("options") String options, @HeaderParam("ttl") Long ttl, @HeaderParam("eol") Long unixEol, @HeaderParam("version") Long versionHeader, @Context jakarta.servlet.http.HttpServletResponse servletResponse, @Context jakarta.servlet.http.HttpServletRequest servletRequest) throws IOException - Throws:
IOException
-
delete
-
get
@GET @Produces("application/octet-stream") @Path("/container/{container}/key/{key}") public void get(@PathParam("container") String containerName, @PathParam("key") String key, @Context jakarta.servlet.http.HttpServletResponse servletResponse, @Context jakarta.servlet.http.HttpServletRequest servletRequest) throws IOException - Throws:
IOException
-
getKeys
-
containerList
@GET @Produces("application/json") @Path("/container/list") public jakarta.ws.rs.core.Response containerList(@PathParam("key") String key)
-