public class Downloader extends Object
| Constructor and Description |
|---|
Downloader(CdsMojoLogger logger)
Constructs a new
Downloader instance. |
Downloader(List<org.apache.maven.settings.Proxy> proxies,
org.apache.maven.settings.Server server,
CdsMojoLogger logger)
Constructs a new
Downloader instance. |
| Modifier and Type | Method and Description |
|---|---|
void |
download(String downloadUrl,
File destination)
Performs a download from given URL.
|
public Downloader(CdsMojoLogger logger)
Downloader instance.logger - the required CdsMojoLogger instance.NullPointerException - if any of the required parameters is null.public Downloader(List<org.apache.maven.settings.Proxy> proxies, org.apache.maven.settings.Server server, CdsMojoLogger logger)
Downloader instance.proxies - an optional list of proxiesserver - an optional Server providing credentials for basic authentication.logger - the required CdsMojoLogger instance.NullPointerException - if any of the required parameters is null.public void download(String downloadUrl, File destination) throws IOException
downloadUrl - the URL to download fromdestination - the destination FileIOException - if download failedNullPointerException - if any of the required parameters is null.Copyright © 2023. All rights reserved.