public final class DefaultFileDownloader extends Object
Derived from eirslett/frontend-maven-plugin
For internal use only. May be renamed or removed in a future release.
| Modifier and Type | Field and Description |
|---|---|
static String |
HTTPS_PROTOCOLS |
| Constructor and Description |
|---|
DefaultFileDownloader(ProxyConfig proxyConfig)
Construct file downloader with given proxy configuration.
|
| Modifier and Type | Method and Description |
|---|---|
void |
download(URI downloadURI,
File destination,
String userName,
String password)
Download to destination from url using username and password.
|
public static final String HTTPS_PROTOCOLS
public DefaultFileDownloader(ProxyConfig proxyConfig)
proxyConfig - proxy configuration to use for file downloadpublic void download(URI downloadURI, File destination, String userName, String password) throws com.vaadin.flow.server.frontend.installer.DownloadException
downloadURI - uri string from where to downloaddestination - file target directoryuserName - user name, null acceptedpassword - password, null acceptedDownloadException - exception thrown when download failsCopyright © 2025. All rights reserved.