Class ShareApi
- java.lang.Object
-
- javax.ws.rs.core.Application
-
- de.unirostock.sems.cbarchive.web.rest.RestHelper
-
- de.unirostock.sems.cbarchive.web.rest.ShareApi
-
@Path("/") public class ShareApi extends RestHelper
-
-
Constructor Summary
Constructors Constructor Description ShareApi()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
downloadRemoteArchive(String userPath, javax.servlet.http.HttpServletRequest requestContext, String remoteUrl, String archiveName, String remoteType)
javax.ws.rs.core.Response
importRemoteArchive(String userPath, String userJson, ImportRequest request, javax.servlet.http.HttpServletRequest requestContext)
javax.ws.rs.core.Response
setUserPath(String oldUserPath, String userPath, String historyCookie, javax.servlet.http.HttpServletRequest requestContext)
javax.ws.rs.core.Response
setWorkspaceHistory(String oldUserPath, String historyListString, String historyCookie, javax.servlet.http.HttpServletRequest requestContext)
javax.ws.rs.core.Response
uploadArchive(String userPath, String userJson, javax.servlet.http.HttpServletRequest requestContext, String serializedRequest, org.glassfish.jersey.media.multipart.FormDataBodyPart archiveFile, List<org.glassfish.jersey.media.multipart.FormDataBodyPart> additionalFiles)
-
Methods inherited from class de.unirostock.sems.cbarchive.web.rest.RestHelper
buildErrorResponse, buildResponse, buildTextErrorResponse
-
-
-
-
Method Detail
-
setUserPath
@GET @Path("/share/{user_path}") @Produces("text/plain") public javax.ws.rs.core.Response setUserPath(@CookieParam("combinearchiveweba") String oldUserPath, @PathParam("user_path") String userPath, @CookieParam("combinearchivewebhist") String historyCookie, @Context javax.servlet.http.HttpServletRequest requestContext)
-
setWorkspaceHistory
@GET @Path("/history/{history}") @Produces("text/plain") public javax.ws.rs.core.Response setWorkspaceHistory(@CookieParam("combinearchiveweba") String oldUserPath, @PathParam("history") String historyListString, @CookieParam("combinearchivewebhist") String historyCookie, @Context javax.servlet.http.HttpServletRequest requestContext)
-
downloadRemoteArchive
@GET @Path("/import") @Produces("text/plain") public javax.ws.rs.core.Response downloadRemoteArchive(@CookieParam("combinearchiveweba") String userPath, @Context javax.servlet.http.HttpServletRequest requestContext, @DefaultValue("http") @QueryParam("remote") String remoteUrl, @QueryParam("name") String archiveName, @QueryParam("type") String remoteType)
-
importRemoteArchive
@POST @Path("/import") @Produces("text/plain") @Consumes("application/json") public javax.ws.rs.core.Response importRemoteArchive(@CookieParam("combinearchiveweba") String userPath, @CookieParam("combinearchivewebuser") String userJson, ImportRequest request, @Context javax.servlet.http.HttpServletRequest requestContext)
-
uploadArchive
@POST @Path("/import") @Produces("text/plain") @Consumes("multipart/form-data") public javax.ws.rs.core.Response uploadArchive(@CookieParam("combinearchiveweba") String userPath, @CookieParam("combinearchivewebuser") String userJson, @Context javax.servlet.http.HttpServletRequest requestContext, String serializedRequest, org.glassfish.jersey.media.multipart.FormDataBodyPart archiveFile, List<org.glassfish.jersey.media.multipart.FormDataBodyPart> additionalFiles)
-
-