public class PackageDownloader extends Object
Modifier and Type | Field and Description |
---|---|
static String |
BASE_URL_KEY |
static String |
DEFAULT_BASE_URL |
static String |
PACKAGES_DEFAULT_SELECTION |
static String |
PACKAGES_DEFAULT_SELECTION_PACKAGES |
static String |
PACKAGES_DEFAULT_SELECTION_PRESETS |
static String |
PACKAGES_XML |
Modifier and Type | Method and Description |
---|---|
boolean |
canReachServer() |
DownloadablePackageOptions |
getPackageOptions() |
List<PendingDownload> |
getPendingDownloads() |
List<DownloadPackage> |
getSelectedPackages() |
static PackageDownloader |
instance() |
boolean |
isDownloadCompleted() |
boolean |
isDownloadInProgress() |
boolean |
isDownloadStarted() |
static void |
reset() |
void |
reStartDownload(String id) |
void |
scheduleDownloadedPackagesForInstallation(String installationFilePath) |
void |
selectOptions(List<String> ids) |
void |
setProxy(String proxy,
int port,
String login,
String password,
String NTLMHost,
String NTLMDomain) |
void |
shutdown() |
void |
startDownload() |
void |
startDownload(List<DownloadPackage> pkgs) |
public static final String PACKAGES_XML
public static final String PACKAGES_DEFAULT_SELECTION
public static final String PACKAGES_DEFAULT_SELECTION_PRESETS
public static final String PACKAGES_DEFAULT_SELECTION_PACKAGES
public static final String BASE_URL_KEY
public static final String DEFAULT_BASE_URL
public static PackageDownloader instance()
public static void reset()
public void setProxy(String proxy, int port, String login, String password, String NTLMHost, String NTLMDomain)
public boolean canReachServer()
public DownloadablePackageOptions getPackageOptions()
public List<DownloadPackage> getSelectedPackages()
public void scheduleDownloadedPackagesForInstallation(String installationFilePath) throws IOException
IOException
public List<PendingDownload> getPendingDownloads()
public void reStartDownload(String id)
public void startDownload()
public void startDownload(List<DownloadPackage> pkgs)
public boolean isDownloadStarted()
public boolean isDownloadCompleted()
public boolean isDownloadInProgress()
public void shutdown()
Copyright © 2013 Nuxeo SA. All Rights Reserved.