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.HttpResponseexecute(org.apache.http.client.methods.HttpUriRequest request) <T> Texecute(org.apache.http.client.methods.HttpUriRequest request, org.apache.http.client.ResponseHandler<? extends T> responseHandler) <T> Texecute(org.apache.http.client.methods.HttpUriRequest request, org.apache.http.client.ResponseHandler<? extends T> responseHandler, org.apache.http.protocol.HttpContext context) org.apache.http.HttpResponseexecute(org.apache.http.client.methods.HttpUriRequest request, org.apache.http.protocol.HttpContext context) org.apache.http.HttpResponseexecute(org.apache.http.HttpHost target, org.apache.http.HttpRequest request) <T> Texecute(org.apache.http.HttpHost target, org.apache.http.HttpRequest request, org.apache.http.client.ResponseHandler<? extends T> responseHandler) <T> Texecute(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.HttpResponseexecute(org.apache.http.HttpHost target, org.apache.http.HttpRequest request, org.apache.http.protocol.HttpContext context) org.apache.http.conn.ClientConnectionManagerorg.apache.http.conn.HttpClientConnectionManagerReturns theHttpClientConnectionManagerassociated 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:
getParamsin interfaceorg.apache.http.client.HttpClient
-
getConnectionManager
public org.apache.http.conn.ClientConnectionManager getConnectionManager()- Specified by:
getConnectionManagerin 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:
executein interfaceorg.apache.http.client.HttpClient- Throws:
IOExceptionorg.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:
executein interfaceorg.apache.http.client.HttpClient- Throws:
IOExceptionorg.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:
executein interfaceorg.apache.http.client.HttpClient- Throws:
IOExceptionorg.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:
executein interfaceorg.apache.http.client.HttpClient- Throws:
IOExceptionorg.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:
executein interfaceorg.apache.http.client.HttpClient- Throws:
IOExceptionorg.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:
executein interfaceorg.apache.http.client.HttpClient- Throws:
IOExceptionorg.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:
executein interfaceorg.apache.http.client.HttpClient- Throws:
IOExceptionorg.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:
executein interfaceorg.apache.http.client.HttpClient- Throws:
IOExceptionorg.apache.http.client.ClientProtocolException
-
getHttpClientConnectionManager
public org.apache.http.conn.HttpClientConnectionManager getHttpClientConnectionManager()Description copied from interface:ConnectionManagerAwareHttpClientReturns theHttpClientConnectionManagerassociated with the http client.- Specified by:
getHttpClientConnectionManagerin interfaceConnectionManagerAwareHttpClient
-