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
ConstructorsConstructorDescriptionDownloader(CdsMojoLogger logger) Constructs a newDownloaderinstance.Downloader(List<org.apache.maven.settings.Proxy> proxies, org.apache.maven.settings.Server server, CdsMojoLogger logger) Constructs a newDownloaderinstance. -
Method Summary
-
Constructor Details
-
Downloader
Constructs a newDownloaderinstance.- Parameters:
logger- the requiredCdsMojoLoggerinstance.- 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 newDownloaderinstance.- Parameters:
proxies- an optional list of proxiesserver- an optionalServerproviding credentials for basic authentication.logger- the requiredCdsMojoLoggerinstance.- 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.
-