| Modifier and Type | Class and Description |
|---|---|
static class |
ApacheClient.Builder |
| Modifier and Type | Field and Description |
|---|---|
protected RequestConfigFactory |
configFactory |
| Constructor and Description |
|---|
ApacheClient(Config config) |
ApacheClient(org.apache.http.client.HttpClient httpClient,
Config config) |
ApacheClient(org.apache.http.client.HttpClient httpClient,
Config config,
org.apache.http.impl.conn.PoolingHttpClientConnectionManager clientManager,
SyncIdleConnectionMonitorThread connMonitor)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static ApacheClient.Builder |
builder(org.apache.http.client.HttpClient baseClient) |
java.util.stream.Stream<Exception> |
close() |
org.apache.http.client.HttpClient |
getClient() |
org.apache.http.impl.conn.PoolingHttpClientConnectionManager |
getManager() |
SyncIdleConnectionMonitorThread |
getSyncMonitor() |
protected <T> void |
handleError(Config config,
HttpResponse<T> httpResponse) |
void |
registerShutdownHook() |
<T> HttpResponse<T> |
request(HttpRequest request,
java.util.function.Function<RawResponse,HttpResponse<T>> transformer)
Make a request
|
void |
setConfigFactory(RequestConfigFactory configFactory) |
protected org.apache.http.client.CredentialsProvider |
toApacheCreds(Proxy proxy) |
protected <T> HttpResponse<T> |
transformBody(java.util.function.Function<RawResponse,HttpResponse<T>> transformer,
RawResponse rr) |
protected RequestConfigFactory configFactory
public ApacheClient(Config config)
@Deprecated public ApacheClient(org.apache.http.client.HttpClient httpClient, Config config, org.apache.http.impl.conn.PoolingHttpClientConnectionManager clientManager, SyncIdleConnectionMonitorThread connMonitor)
public ApacheClient(org.apache.http.client.HttpClient httpClient,
Config config)
public void registerShutdownHook()
registerShutdownHook in interface Clientpublic <T> HttpResponse<T> request(HttpRequest request, java.util.function.Function<RawResponse,HttpResponse<T>> transformer)
Clientpublic org.apache.http.client.HttpClient getClient()
public org.apache.http.impl.conn.PoolingHttpClientConnectionManager getManager()
public SyncIdleConnectionMonitorThread getSyncMonitor()
public java.util.stream.Stream<Exception> close()
public static ApacheClient.Builder builder(org.apache.http.client.HttpClient baseClient)
protected org.apache.http.client.CredentialsProvider toApacheCreds(Proxy proxy)
protected <T> HttpResponse<T> transformBody(java.util.function.Function<RawResponse,HttpResponse<T>> transformer, RawResponse rr)
protected <T> void handleError(Config config, HttpResponse<T> httpResponse)
public void setConfigFactory(RequestConfigFactory configFactory)
Copyright © 2019. All rights reserved.