Class DownloadHandler

All Implemented Interfaces:
Resource, Adaptable

public class DownloadHandler extends DefaultObject
Provides REST binding for Package download management.
Author:
Thierry Delprat
  • Constructor Details

    • DownloadHandler

      public DownloadHandler()
  • Method Details

    • getDownloadProgress

      @GET @Produces("text/plain") @Path("progress/{pkgId}") public String getDownloadProgress(@PathParam("pkgId") String pkgId)
    • getDownloadsProgress

      @GET @Produces("application/json") @Path("progressAsJSON") public String getDownloadsProgress()
    • getDownloadProgressPage

      @GET @Produces("text/html") @Path("progressPage/{pkgId}") public Template getDownloadProgressPage(@PathParam("pkgId") String pkgId, @QueryParam("source") String source, @QueryParam("install") Boolean install, @QueryParam("depCheck") Boolean depCheck, @QueryParam("type") String pkgType, @QueryParam("onlyRemote") Boolean onlyRemote, @QueryParam("filterOnPlatform") Boolean filterOnPlatform)
    • getDownloadingPackage

      protected org.nuxeo.connect.data.DownloadingPackage getDownloadingPackage(String pkgId)
    • startDownload

      @GET @Produces("text/html") @Path("start/{pkgId}") public Template startDownload(@PathParam("pkgId") String pkgId, @QueryParam("source") String source, @QueryParam("install") Boolean install, @QueryParam("depCheck") Boolean depCheck, @QueryParam("type") String pkgType, @QueryParam("onlyRemote") Boolean onlyRemote, @QueryParam("filterOnPlatform") Boolean filterOnPlatform)
    • startDownloads

      @GET @Produces("application/json") @Path("startDownloads") public String startDownloads(@QueryParam("pkgList") String pkgList)
    • cancelDownload

      @GET @Path("cancel/{pkgId}") public jakarta.ws.rs.core.Response cancelDownload(@PathParam("pkgId") String pkgId, @QueryParam("source") String source)
      Since:
      5.6