Package com.saperion.rs
Class WeblinkZipService
- java.lang.Object
-
- com.saperion.rs.RestService
-
- com.saperion.rs.AbstractWeblinkService
-
- com.saperion.rs.WeblinkZipService
-
@Path("/weblink/zip") @Singleton public class WeblinkZipService extends AbstractWeblinkService
The Class WeblinkZipResource. This JAX-RS resource represents the weblink zip service. URL: /weblink/zip.
-
-
Field Summary
-
Fields inherited from class com.saperion.rs.RestService
LOGGER
-
-
Constructor Summary
Constructors Constructor Description WeblinkZipService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
getZipFile(javax.ws.rs.core.UriInfo info, javax.servlet.http.HttpServletRequest request, WeblinkParameter params)
Retrieves the requested document element and returns it as a download attachment.javax.ws.rs.core.Response
getZipFileWithoutFilename(javax.ws.rs.core.UriInfo info, javax.servlet.http.HttpServletRequest request, WeblinkParameter params)
Retrieves the requested document element and returns it as a download attachment.-
Methods inherited from class com.saperion.rs.AbstractWeblinkService
appendToFilename, getContent, getFilenameFromDocElement, getHDoc, getTypedId, logAndThrowWebException, sendBadRequestMessage
-
Methods inherited from class com.saperion.rs.RestService
checkConnection, getConnection
-
-
-
-
Method Detail
-
getZipFile
@GET @Path("{archive}/{field}/{id}/{filename}") @Produces("application/x-zip-compressed") public javax.ws.rs.core.Response getZipFile(@Context javax.ws.rs.core.UriInfo info, @Context javax.servlet.http.HttpServletRequest request, @Context WeblinkParameter params)
Retrieves the requested document element and returns it as a download attachment.- Parameters:
info
- the inforequest
- injected HttpServletRequestparams
- the params- Returns:
- processing dependent Response.
-
getZipFileWithoutFilename
@GET @Path("{archive}/{field}/{id}") @Produces("application/x-zip-compressed") public javax.ws.rs.core.Response getZipFileWithoutFilename(@Context javax.ws.rs.core.UriInfo info, @Context javax.servlet.http.HttpServletRequest request, @Context WeblinkParameter params)
Retrieves the requested document element and returns it as a download attachment. The attached zip file- Parameters:
info
- the inforequest
- the request- Returns:
- the zip file without filename
-
-