Class Downloader
- java.lang.Object
-
- tech.kronicle.plugins.gradle.internal.services.Downloader
-
public class Downloader extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDownloader.HttpRequestOutcome<T>
-
Constructor Summary
Constructors Constructor Description Downloader(java.net.http.HttpClient httpClient, DownloaderConfig config, DownloadCache downloadCache, UrlExistsCache urlExistsCache, HttpRequestMaker httpRequestMaker)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Downloader.HttpRequestOutcome<java.lang.String>download(java.lang.String url, java.util.List<HttpHeaderConfig> headers, int maxRedirectCount)Downloader.HttpRequestOutcome<java.lang.Boolean>exists(java.lang.String url, java.util.List<HttpHeaderConfig> headers, int maxRedirectCount)
-
-
-
Constructor Detail
-
Downloader
public Downloader(java.net.http.HttpClient httpClient, DownloaderConfig config, DownloadCache downloadCache, UrlExistsCache urlExistsCache, HttpRequestMaker httpRequestMaker)
-
-
Method Detail
-
download
public Downloader.HttpRequestOutcome<java.lang.String> download(java.lang.String url, java.util.List<HttpHeaderConfig> headers, int maxRedirectCount)
-
exists
public Downloader.HttpRequestOutcome<java.lang.Boolean> exists(java.lang.String url, java.util.List<HttpHeaderConfig> headers, int maxRedirectCount)
-
-