public class SdkHttpClient extends Object implements ConnectionManagerAwareHttpClient
ConnectionManagerAwareHttpClient
that delegates all the requests to the given http client.Constructor and Description |
---|
SdkHttpClient(org.apache.http.client.HttpClient delegate,
org.apache.http.conn.HttpClientConnectionManager cm) |
Modifier and Type | Method and Description |
---|---|
org.apache.http.HttpResponse |
execute(org.apache.http.HttpHost target,
org.apache.http.HttpRequest request) |
org.apache.http.HttpResponse |
execute(org.apache.http.HttpHost target,
org.apache.http.HttpRequest request,
org.apache.http.protocol.HttpContext context) |
<T> T |
execute(org.apache.http.HttpHost target,
org.apache.http.HttpRequest request,
org.apache.http.client.ResponseHandler<? extends T> responseHandler) |
<T> T |
execute(org.apache.http.HttpHost target,
org.apache.http.HttpRequest request,
org.apache.http.client.ResponseHandler<? extends T> responseHandler,
org.apache.http.protocol.HttpContext context) |
org.apache.http.HttpResponse |
execute(org.apache.http.client.methods.HttpUriRequest request) |
org.apache.http.HttpResponse |
execute(org.apache.http.client.methods.HttpUriRequest request,
org.apache.http.protocol.HttpContext context) |
<T> T |
execute(org.apache.http.client.methods.HttpUriRequest request,
org.apache.http.client.ResponseHandler<? extends T> responseHandler) |
<T> T |
execute(org.apache.http.client.methods.HttpUriRequest request,
org.apache.http.client.ResponseHandler<? extends T> responseHandler,
org.apache.http.protocol.HttpContext context) |
org.apache.http.conn.ClientConnectionManager |
getConnectionManager() |
org.apache.http.conn.HttpClientConnectionManager |
getHttpClientConnectionManager()
Returns the
HttpClientConnectionManager associated with the
http client. |
org.apache.http.params.HttpParams |
getParams() |
public SdkHttpClient(org.apache.http.client.HttpClient delegate, org.apache.http.conn.HttpClientConnectionManager cm)
public org.apache.http.params.HttpParams getParams()
getParams
in interface org.apache.http.client.HttpClient
public org.apache.http.conn.ClientConnectionManager getConnectionManager()
getConnectionManager
in interface org.apache.http.client.HttpClient
public org.apache.http.HttpResponse execute(org.apache.http.client.methods.HttpUriRequest request) throws IOException, org.apache.http.client.ClientProtocolException
execute
in interface org.apache.http.client.HttpClient
IOException
org.apache.http.client.ClientProtocolException
public org.apache.http.HttpResponse execute(org.apache.http.client.methods.HttpUriRequest request, org.apache.http.protocol.HttpContext context) throws IOException, org.apache.http.client.ClientProtocolException
execute
in interface org.apache.http.client.HttpClient
IOException
org.apache.http.client.ClientProtocolException
public org.apache.http.HttpResponse execute(org.apache.http.HttpHost target, org.apache.http.HttpRequest request) throws IOException, org.apache.http.client.ClientProtocolException
execute
in interface org.apache.http.client.HttpClient
IOException
org.apache.http.client.ClientProtocolException
public org.apache.http.HttpResponse execute(org.apache.http.HttpHost target, org.apache.http.HttpRequest request, org.apache.http.protocol.HttpContext context) throws IOException, org.apache.http.client.ClientProtocolException
execute
in interface org.apache.http.client.HttpClient
IOException
org.apache.http.client.ClientProtocolException
public <T> T execute(org.apache.http.client.methods.HttpUriRequest request, org.apache.http.client.ResponseHandler<? extends T> responseHandler) throws IOException, org.apache.http.client.ClientProtocolException
execute
in interface org.apache.http.client.HttpClient
IOException
org.apache.http.client.ClientProtocolException
public <T> T execute(org.apache.http.client.methods.HttpUriRequest request, org.apache.http.client.ResponseHandler<? extends T> responseHandler, org.apache.http.protocol.HttpContext context) throws IOException, org.apache.http.client.ClientProtocolException
execute
in interface org.apache.http.client.HttpClient
IOException
org.apache.http.client.ClientProtocolException
public <T> T execute(org.apache.http.HttpHost target, org.apache.http.HttpRequest request, org.apache.http.client.ResponseHandler<? extends T> responseHandler) throws IOException, org.apache.http.client.ClientProtocolException
execute
in interface org.apache.http.client.HttpClient
IOException
org.apache.http.client.ClientProtocolException
public <T> T execute(org.apache.http.HttpHost target, org.apache.http.HttpRequest request, org.apache.http.client.ResponseHandler<? extends T> responseHandler, org.apache.http.protocol.HttpContext context) throws IOException, org.apache.http.client.ClientProtocolException
execute
in interface org.apache.http.client.HttpClient
IOException
org.apache.http.client.ClientProtocolException
public org.apache.http.conn.HttpClientConnectionManager getHttpClientConnectionManager()
ConnectionManagerAwareHttpClient
HttpClientConnectionManager
associated with the
http client.getHttpClientConnectionManager
in interface ConnectionManagerAwareHttpClient
Copyright © 2024. All rights reserved.