|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.undercouch.gradle.tasks.download.internal.DefaultHttpClientFactory
de.undercouch.gradle.tasks.download.internal.CachingHttpClientFactory
public class CachingHttpClientFactory
An implementation of HttpClientFactory that caches created clients
until the close() method is called.
| Constructor Summary | |
|---|---|
CachingHttpClientFactory()
|
|
| Method Summary | |
|---|---|
void |
close()
Close all HTTP clients created by this factory |
org.apache.http.impl.client.CloseableHttpClient |
createHttpClient(org.apache.http.HttpHost httpHost,
boolean acceptAnyCertificate)
Creates an HTTP client for the given host |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CachingHttpClientFactory()
| Method Detail |
|---|
public org.apache.http.impl.client.CloseableHttpClient createHttpClient(org.apache.http.HttpHost httpHost,
boolean acceptAnyCertificate)
HttpClientFactory
createHttpClient in interface HttpClientFactorycreateHttpClient in class DefaultHttpClientFactoryhttpHost - the host to connect toacceptAnyCertificate - true if HTTPS certificate verification
errors should be ignored and any certificate (even an invalid one)
should be accepted
public void close()
throws java.io.IOException
java.io.IOException - if an I/O error occurs
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||