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.
-
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,nullacceptedpassword- password,nullacceptedprogressListener- a progres listener ornullif no progress listener is needed- Throws:
DownloadException- exception thrown when download fails
-