public class DefaultHttpClientFactory extends java.lang.Object implements HttpClientFactory
HttpClientFactory. Creates a new client
every time createHttpClient(HttpHost, boolean, int)
is called. The caller is responsible for closing this client.| Constructor and Description |
|---|
DefaultHttpClientFactory() |
| Modifier and Type | Method and Description |
|---|---|
de.undercouch.gradle.tasks.download.org.apache.http.impl.client.CloseableHttpClient |
createHttpClient(de.undercouch.gradle.tasks.download.org.apache.http.HttpHost httpHost,
boolean acceptAnyCertificate,
int retries)
Creates an HTTP client for the given host
|
public de.undercouch.gradle.tasks.download.org.apache.http.impl.client.CloseableHttpClient createHttpClient(de.undercouch.gradle.tasks.download.org.apache.http.HttpHost httpHost,
boolean acceptAnyCertificate,
int retries)
HttpClientFactorycreateHttpClient in interface HttpClientFactoryhttpHost - the host to connect toacceptAnyCertificate - true if HTTPS certificate verification
errors should be ignored and any certificate (even an invalid one)
should be acceptedretries - the number of retries to perform if an HTTP request fails