Package org.nuxeo.connect.client.we
Class DownloadHandler
java.lang.Object
org.nuxeo.ecm.webengine.model.impl.AbstractResource<ResourceTypeImpl>
org.nuxeo.ecm.webengine.model.impl.DefaultObject
org.nuxeo.connect.client.we.DownloadHandler
Provides REST binding for
Package
download management.- Author:
- Thierry Delprat
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.Response
cancelDownload
(String pkgId, String source) protected org.nuxeo.connect.data.DownloadingPackage
getDownloadingPackage
(String pkgId) getDownloadProgress
(String pkgId) getDownloadProgressPage
(String pkgId, String source, Boolean install, Boolean depCheck, String pkgType, Boolean onlyRemote, Boolean filterOnPlatform) startDownload
(String pkgId, String source, Boolean install, Boolean depCheck, String pkgType, Boolean onlyRemote, Boolean filterOnPlatform) startDownloads
(String pkgList) Methods inherited from class org.nuxeo.ecm.webengine.model.impl.DefaultObject
disptachAdapter, isAdapter
Methods inherited from class org.nuxeo.ecm.webengine.model.impl.AbstractResource
checkGuard, dispose, getActiveAdapter, getAdapter, getContext, getFacets, getLinks, getModule, getName, getNext, getNextSegment, getPath, getPrevious, getTemplate, getTrailingPath, getType, getURL, getView, hasFacet, initialize, initialize, isInstanceOf, isRoot, newAdapter, newObject, redirect, setNext, setPrevious, setRoot, toString
-
Constructor Details
-
DownloadHandler
public DownloadHandler()
-
-
Method Details
-
getDownloadProgress
-
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
-
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
-
cancelDownload
@GET @Path("cancel/{pkgId}") public jakarta.ws.rs.core.Response cancelDownload(@PathParam("pkgId") String pkgId, @QueryParam("source") String source) - Since:
- 5.6
-