Package com.saperion.rs
Class WeblinkZipService
java.lang.Object
com.saperion.rs.RestService
com.saperion.rs.AbstractWeblinkService
com.saperion.rs.WeblinkZipService
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 -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.Response
getZipFile
(jakarta.ws.rs.core.UriInfo info, jakarta.servlet.http.HttpServletRequest request, WeblinkParameter params) Retrieves the requested document element and returns it as a download attachment.jakarta.ws.rs.core.Response
getZipFileWithoutFilename
(jakarta.ws.rs.core.UriInfo info, jakarta.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
-
Constructor Details
-
WeblinkZipService
public WeblinkZipService()
-
-
Method Details
-
getZipFile
@GET @Path("{archive}/{field}/{id}/{filename}") @Produces("application/x-zip-compressed") public jakarta.ws.rs.core.Response getZipFile(@Context jakarta.ws.rs.core.UriInfo info, @Context jakarta.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 jakarta.ws.rs.core.Response getZipFileWithoutFilename(@Context jakarta.ws.rs.core.UriInfo info, @Context jakarta.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
-