@Path(value="/a")
public class ArchiveService
extends java.lang.Object
Constructor and Description |
---|
ArchiveService() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
clean(javax.ws.rs.core.UriInfo uriInfo,
javax.servlet.http.HttpServletRequest req)
Clean the archive.
|
javax.ws.rs.core.Response |
downloadArchive(javax.ws.rs.core.UriInfo uriInfo,
javax.servlet.http.HttpServletRequest req,
java.lang.String suid)
Download an archive.
|
java.lang.String |
removeArchive(javax.ws.rs.core.UriInfo uriInfo,
javax.servlet.http.HttpServletRequest req,
java.lang.String suid) |
@GET @Produces(value="application/octet-stream") @Path(value="download/{suid}") public javax.ws.rs.core.Response downloadArchive(@Context javax.ws.rs.core.UriInfo uriInfo, @Context javax.servlet.http.HttpServletRequest req, @PathParam(value="suid") java.lang.String suid)
uriInfo
- the URI inforeq
- the requestsuid
- the SUID@GET @Produces(value="application/json") @Path(value="remove/{suid}") public java.lang.String removeArchive(@Context javax.ws.rs.core.UriInfo uriInfo, @Context javax.servlet.http.HttpServletRequest req, @PathParam(value="suid") java.lang.String suid)
@GET @Produces(value="application/json") @Path(value="clean") public java.lang.String clean(@Context javax.ws.rs.core.UriInfo uriInfo, @Context javax.servlet.http.HttpServletRequest req) throws org.codehaus.jettison.json.JSONException
uriInfo
- uri informationreq
- servlet requestorg.codehaus.jettison.json.JSONException
- JSONObject requires JSONException(c) 2012-2022, OMSLab, Colorado State University.