de.undercouch.gradle.tasks.download.internal
Interface HttpClientFactory

All Known Implementing Classes:
CachingHttpClientFactory, DefaultHttpClientFactory

public interface HttpClientFactory

Factory for Apache HttpClient objects


Method Summary
 org.apache.http.impl.client.CloseableHttpClient createHttpClient(org.apache.http.HttpHost httpHost, boolean acceptAnyCertificate)
          Creates an HTTP client for the given host
 

Method Detail

createHttpClient

org.apache.http.impl.client.CloseableHttpClient createHttpClient(org.apache.http.HttpHost httpHost,
                                                                 boolean acceptAnyCertificate)
Creates an HTTP client for the given host

Parameters:
httpHost - the host to connect to
acceptAnyCertificate - true if HTTPS certificate verification errors should be ignored and any certificate (even an invalid one) should be accepted
Returns:
the HTTP client