Class KeyValueService

java.lang.Object
org.rostore.service.KeyValueService

@Path("/") @RequestScoped public class KeyValueService extends Object
  • 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

      @DELETE @Produces("application/json") @Path("/container/{container}/key/{key}") public jakarta.ws.rs.core.Response delete(@PathParam("container") String containerName, @PathParam("key") String key, @HeaderParam("options") String options, @HeaderParam("version") Long versionHeader)
    • 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

      @GET @Produces("application/json") @Path("/container/{container}/keys") public jakarta.ws.rs.core.Response getKeys(@PathParam("container") String containerName, @QueryParam("start-with-key") String startWithKey, @QueryParam("continuation-key") String continuationKey)
    • containerList

      @GET @Produces("application/json") @Path("/container/list") public jakarta.ws.rs.core.Response containerList(@PathParam("key") String key)