public class CloseableHttpClientDecorator
extends org.apache.http.impl.client.CloseableHttpClient
CloseableObserver can register to
onClose() event| Constructor and Description |
|---|
CloseableHttpClientDecorator(org.apache.http.impl.client.CloseableHttpClient closeableHttpClient,
org.apache.http.impl.conn.PoolingHttpClientConnectionManager clientConnectionManager,
boolean useKerberos) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Release resources and unregister itself from
CloseableObserver |
protected org.apache.http.client.methods.CloseableHttpResponse |
doExecute(org.apache.http.HttpHost target,
org.apache.http.HttpRequest request,
org.apache.http.protocol.HttpContext context) |
org.apache.http.conn.ClientConnectionManager |
getConnectionManager()
Deprecated.
|
org.apache.http.params.HttpParams |
getParams()
Deprecated.
|
void |
onClose()
Fired on close() event
|
public CloseableHttpClientDecorator(org.apache.http.impl.client.CloseableHttpClient closeableHttpClient,
org.apache.http.impl.conn.PoolingHttpClientConnectionManager clientConnectionManager,
boolean useKerberos)
closeableHttpClient - CloseableHttpClientclientConnectionManager - PoolingHttpClientConnectionManagerpublic void close()
throws java.io.IOException
CloseableObserverjava.io.IOExceptionprotected org.apache.http.client.methods.CloseableHttpResponse doExecute(org.apache.http.HttpHost target,
org.apache.http.HttpRequest request,
org.apache.http.protocol.HttpContext context)
throws java.io.IOException
doExecute in class org.apache.http.impl.client.CloseableHttpClientjava.io.IOException@Deprecated public org.apache.http.params.HttpParams getParams()
@Deprecated public org.apache.http.conn.ClientConnectionManager getConnectionManager()
public void onClose()