public class DefaultHttpClientFactory extends java.lang.Object implements HttpClientFactory
HttpClientFactory. Creates a new client
every time createHttpClient(HttpHost, boolean, int, Logger, boolean)
is called. The caller is responsible for closing this client.| Constructor and Description |
|---|
DefaultHttpClientFactory() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.hc.client5.http.impl.classic.CloseableHttpClient |
createHttpClient(org.apache.hc.core5.http.HttpHost httpHost,
boolean acceptAnyCertificate,
int retries,
org.gradle.api.logging.Logger logger,
boolean quiet)
Creates an HTTP client for the given host
|
public org.apache.hc.client5.http.impl.classic.CloseableHttpClient createHttpClient(org.apache.hc.core5.http.HttpHost httpHost,
boolean acceptAnyCertificate,
int retries,
org.gradle.api.logging.Logger logger,
boolean quiet)
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 failslogger - the project's loggerquiet - true if the quiet flag is set