com.vaadin.flow.server.frontend.installer.
Class DefaultFileDownloader
All Implemented Interfaces:
Default file downloader implementation.
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/interfaces inherited from interface com.vaadin.flow.server.frontend.installer.FileDownloader
FileDownloader.ProgressListener -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefaultFileDownloader(ProxyConfig proxyConfig) Construct file downloader with given proxy configuration.
-
Method Summary
-
Field Details
-
HTTPS_PROTOCOLS
See Also:
-
-
Constructor Details
-
DefaultFileDownloader
Construct file downloader with given proxy configuration.
Parameters:
proxyConfig- proxy configuration to use for file download
-
-
Method Details
-
download
public void download(URI downloadURI, File destination, String userName, String password, FileDownloader.ProgressListener progressListener) throws DownloadException Description copied from interface:
FileDownloaderDownload to destination from url using username and password.
Specified by:
downloadin interfaceFileDownloaderParameters:
downloadURI- uri string from where to downloaddestination- file target directoryuserName- user name,nullacceptedpassword- password,nullacceptedprogressListener- a progres listener ornullif no progress listener is neededThrows:
DownloadException- exception thrown when download fails
-