Class DefaultFileDownloader
java.lang.Object
com.vaadin.flow.server.frontend.installer.DefaultFileDownloader
- All Implemented Interfaces:
FileDownloader
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:FileDownloader
Download to destination from url using username and password.- Specified by:
download
in interfaceFileDownloader
- Parameters:
downloadURI
- 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
-