Class SdkHttpClient
java.lang.Object
com.amazonaws.http.apache.client.impl.SdkHttpClient
- All Implemented Interfaces:
ConnectionManagerAwareHttpClient
,org.apache.http.client.HttpClient
An instance of
ConnectionManagerAwareHttpClient
that delegates all the requests to the given http client.-
Constructor Summary
ConstructorsConstructorDescriptionSdkHttpClient
(org.apache.http.client.HttpClient delegate, org.apache.http.conn.HttpClientConnectionManager cm) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.http.HttpResponse
execute
(org.apache.http.client.methods.HttpUriRequest request) <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.HttpResponse
execute
(org.apache.http.client.methods.HttpUriRequest request, org.apache.http.protocol.HttpContext context) org.apache.http.HttpResponse
execute
(org.apache.http.HttpHost target, org.apache.http.HttpRequest request) <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.HttpHost target, org.apache.http.HttpRequest request, org.apache.http.protocol.HttpContext context) org.apache.http.conn.ClientConnectionManager
org.apache.http.conn.HttpClientConnectionManager
Returns theHttpClientConnectionManager
associated with the http client.org.apache.http.params.HttpParams
-
Constructor Details
-
SdkHttpClient
public SdkHttpClient(org.apache.http.client.HttpClient delegate, org.apache.http.conn.HttpClientConnectionManager cm)
-
-
Method Details
-
getParams
public org.apache.http.params.HttpParams getParams()- Specified by:
getParams
in interfaceorg.apache.http.client.HttpClient
-
getConnectionManager
public org.apache.http.conn.ClientConnectionManager getConnectionManager()- Specified by:
getConnectionManager
in interfaceorg.apache.http.client.HttpClient
-
execute
public org.apache.http.HttpResponse execute(org.apache.http.client.methods.HttpUriRequest request) throws IOException, org.apache.http.client.ClientProtocolException - Specified by:
execute
in interfaceorg.apache.http.client.HttpClient
- Throws:
IOException
org.apache.http.client.ClientProtocolException
-
execute
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 - Specified by:
execute
in interfaceorg.apache.http.client.HttpClient
- Throws:
IOException
org.apache.http.client.ClientProtocolException
-
execute
public org.apache.http.HttpResponse execute(org.apache.http.HttpHost target, org.apache.http.HttpRequest request) throws IOException, org.apache.http.client.ClientProtocolException - Specified by:
execute
in interfaceorg.apache.http.client.HttpClient
- Throws:
IOException
org.apache.http.client.ClientProtocolException
-
execute
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 - Specified by:
execute
in interfaceorg.apache.http.client.HttpClient
- Throws:
IOException
org.apache.http.client.ClientProtocolException
-
execute
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 - Specified by:
execute
in interfaceorg.apache.http.client.HttpClient
- Throws:
IOException
org.apache.http.client.ClientProtocolException
-
execute
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 - Specified by:
execute
in interfaceorg.apache.http.client.HttpClient
- Throws:
IOException
org.apache.http.client.ClientProtocolException
-
execute
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 - Specified by:
execute
in interfaceorg.apache.http.client.HttpClient
- Throws:
IOException
org.apache.http.client.ClientProtocolException
-
execute
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 - Specified by:
execute
in interfaceorg.apache.http.client.HttpClient
- Throws:
IOException
org.apache.http.client.ClientProtocolException
-
getHttpClientConnectionManager
public org.apache.http.conn.HttpClientConnectionManager getHttpClientConnectionManager()Description copied from interface:ConnectionManagerAwareHttpClient
Returns theHttpClientConnectionManager
associated with the http client.- Specified by:
getHttpClientConnectionManager
in interfaceConnectionManagerAwareHttpClient
-