Package com.sap.cds.maven.plugin.util
Class Downloader
java.lang.Object
com.sap.cds.maven.plugin.util.Downloader
Used to download the Node archive from a given download URL.
-
Constructor Summary
ConstructorDescriptionDownloader
(CdsMojoLogger logger) Constructs a newDownloader
instance.Downloader
(List<org.apache.maven.settings.Proxy> proxies, org.apache.maven.settings.Server server, CdsMojoLogger logger) Constructs a newDownloader
instance. -
Method Summary
-
Constructor Details
-
Downloader
Constructs a newDownloader
instance.- Parameters:
logger
- the requiredCdsMojoLogger
instance.- Throws:
NullPointerException
- if any of the required parameters isnull
.
-
Downloader
public Downloader(List<org.apache.maven.settings.Proxy> proxies, org.apache.maven.settings.Server server, CdsMojoLogger logger) Constructs a newDownloader
instance.- Parameters:
proxies
- an optional list of proxiesserver
- an optionalServer
providing credentials for basic authentication.logger
- the requiredCdsMojoLogger
instance.- Throws:
NullPointerException
- if any of the required parameters isnull
.
-
-
Method Details
-
download
Performs a download from given URL.- Parameters:
downloadUrl
- the URL to download fromdestination
- the destinationFile
- Throws:
IOException
- if download failedNullPointerException
- if any of the required parameters isnull
.
-