Interface FileDownloader
- All Known Implementing Classes:
DefaultFileDownloader
public interface FileDownloader
Handle file download from given url to target destination.
Derived from eirslett/frontend-maven-plugin
For internal use only. May be renamed or removed in a future release.
- Since:
-
Nested Class Summary
Nested Classes -
Method Summary
-
Method Details
-
download
void download(URI downloadTarget, File destination, String userName, String password, FileDownloader.ProgressListener progressListener) throws DownloadException Download to destination from url using username and password.- Parameters:
downloadTarget
- uri string from where to downloaddestination
- file target directoryuserName
- user name,null
acceptedpassword
- password,null
acceptedprogressListener
- a progres listener ornull
if no progress listener is needed- Throws:
DownloadException
- exception thrown when download fails
-