Package com.h3xstream.retirejs.repo.dl
Interface Downloader
-
- All Known Implementing Classes:
DefaultDownloader
public interface Downloader
-
-
Method Summary
All Methods Instance Methods Abstract 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
void downloadUrlToFile(java.lang.String url, java.io.File file) throws java.lang.ExceptionDownload 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.- Parameters:
url- URL to requestfile- File where the content will be saved.- Throws:
java.lang.Exception- Connection error most likely
-
-