Class 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.
    • Constructor Detail

      • WeblinkZipService

        public WeblinkZipService()
    • 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 info
        request - injected HttpServletRequest
        params - 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 info
        request - the request
        Returns:
        the zip file without filename