public class ApacheHttpClientImpl extends Object implements HttpClient
| Constructor and Description |
|---|
ApacheHttpClientImpl(GoogleAnalyticsConfig config) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected org.apache.http.impl.client.CloseableHttpClient |
createHttpClient(GoogleAnalyticsConfig config) |
protected List<org.apache.http.NameValuePair> |
createNameValuePairs(HttpRequest req) |
protected org.apache.http.client.methods.CloseableHttpResponse |
execute(String url,
org.apache.http.HttpEntity entity) |
boolean |
isBatchSupported() |
HttpResponse |
post(HttpRequest req) |
HttpBatchResponse |
postBatch(HttpBatchRequest req) |
public ApacheHttpClientImpl(GoogleAnalyticsConfig config)
public void close()
close in interface AutoCloseableprotected org.apache.http.impl.client.CloseableHttpClient createHttpClient(GoogleAnalyticsConfig config)
public boolean isBatchSupported()
isBatchSupported in interface HttpClientprotected org.apache.http.client.methods.CloseableHttpResponse execute(String url, org.apache.http.HttpEntity entity) throws org.apache.http.client.ClientProtocolException, IOException
org.apache.http.client.ClientProtocolExceptionIOExceptionprotected List<org.apache.http.NameValuePair> createNameValuePairs(HttpRequest req)
public HttpResponse post(HttpRequest req)
post in interface HttpClientpublic HttpBatchResponse postBatch(HttpBatchRequest req)
postBatch in interface HttpClientCopyright © Sep 2013–2018 Mike Hardy. All rights reserved.