public interface Downloader
extends java.io.Serializable
Downloadable, which contains a remote file location, and will download it to the local file system.
If the Downloadable has the unarchive flag set to true then the Downloader will examine the download,
and if the download is a supported archive then the download will be extracted and the extracted folder will be the path in the DownloadResult.
If the download process was skipped (e.g. the file was cached from a previous download) then the DownloadResult's isDownloadSkipped flag must be set to true.
Implement WorkspaceDownloader if you want caching, file-locking, versioning, and extracting handled for you.| Modifier and Type | Method and Description |
|---|---|
DownloadResult |
download(Downloadable downloadable)
Handles the entire management of the download process.
|
boolean |
supports(java.lang.String path)
Indicates whether an implementation can handle this remote path.
|
DownloadResult download(Downloadable downloadable)
DownloadManager.downloadable - The download request containing the location of the remote resourceboolean supports(java.lang.String path)
path - The path to be downloaded© 2018, 2020 Precisely. All rights reserved.