@Contract(threading=SAFE_CONDITIONAL) class MinimalHttpClient extends CloseableHttpClient
| Modifier and Type | Field and Description |
|---|---|
private HttpClientConnectionManager |
connManager |
private org.apache.http.params.HttpParams |
params |
private MinimalClientExec |
requestExecutor |
| Constructor and Description |
|---|
MinimalHttpClient(HttpClientConnectionManager connManager) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected CloseableHttpResponse |
doExecute(org.apache.http.HttpHost target,
org.apache.http.HttpRequest request,
org.apache.http.protocol.HttpContext context) |
ClientConnectionManager |
getConnectionManager()
Obtains the connection manager used by this client.
|
org.apache.http.params.HttpParams |
getParams()
Obtains the parameters for this client.
|
private final HttpClientConnectionManager connManager
private final MinimalClientExec requestExecutor
private final org.apache.http.params.HttpParams params
public MinimalHttpClient(HttpClientConnectionManager connManager)
protected CloseableHttpResponse doExecute(org.apache.http.HttpHost target, org.apache.http.HttpRequest request, org.apache.http.protocol.HttpContext context) throws java.io.IOException, ClientProtocolException
doExecute in class CloseableHttpClientjava.io.IOExceptionClientProtocolExceptionpublic org.apache.http.params.HttpParams getParams()
HttpClientpublic void close()
public ClientConnectionManager getConnectionManager()
HttpClient