Package com.h3xstream.retirejs.repo.dl
Class DefaultDownloader
- java.lang.Object
-
- com.h3xstream.retirejs.repo.dl.DefaultDownloader
-
- All Implemented Interfaces:
Downloader
public class DefaultDownloader extends java.lang.Object implements Downloader
-
-
Constructor Summary
Constructors Constructor Description DefaultDownloader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddownloadUrlToFile(java.lang.String url, java.io.File file)Download the content at the URL given and save it locally.
-
-
-
Method Detail
-
downloadUrlToFile
public void downloadUrlToFile(java.lang.String url, java.io.File file) throws java.io.IOExceptionDescription copied from interface:DownloaderDownload the content at the URL given and save it locally. This interface is used to switch between HTTP connector. In the context of Maven, the connection need to pass through Maven API in order to benefit from its proxy configuration. The Maven plugin would otherwise not work on enterprise network.- Specified by:
downloadUrlToFilein interfaceDownloader- Parameters:
url- URL to requestfile- File where the content will be saved.- Throws:
java.io.IOException
-
-