Class Apache5SdkHttpClient
java.lang.Object
software.amazon.awssdk.http.apache5.internal.impl.Apache5SdkHttpClient
- All Implemented Interfaces:
org.apache.hc.client5.http.classic.HttpClient
,ConnectionManagerAwareHttpClient
An instance of
ConnectionManagerAwareHttpClient
that delegates all the requests to the given http client.-
Constructor Summary
ConstructorsConstructorDescriptionApache5SdkHttpClient
(org.apache.hc.client5.http.classic.HttpClient delegate, org.apache.hc.client5.http.io.HttpClientConnectionManager cm) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hc.core5.http.HttpResponse
execute
(org.apache.hc.core5.http.ClassicHttpRequest request) <T> T
execute
(org.apache.hc.core5.http.ClassicHttpRequest request, org.apache.hc.core5.http.io.HttpClientResponseHandler<? extends T> responseHandler) org.apache.hc.core5.http.HttpResponse
execute
(org.apache.hc.core5.http.ClassicHttpRequest request, org.apache.hc.core5.http.protocol.HttpContext context) <T> T
execute
(org.apache.hc.core5.http.ClassicHttpRequest request, org.apache.hc.core5.http.protocol.HttpContext context, org.apache.hc.core5.http.io.HttpClientResponseHandler<? extends T> responseHandler) org.apache.hc.core5.http.ClassicHttpResponse
execute
(org.apache.hc.core5.http.HttpHost target, org.apache.hc.core5.http.ClassicHttpRequest request) <T> T
execute
(org.apache.hc.core5.http.HttpHost target, org.apache.hc.core5.http.ClassicHttpRequest request, org.apache.hc.core5.http.io.HttpClientResponseHandler<? extends T> responseHandler) org.apache.hc.core5.http.HttpResponse
execute
(org.apache.hc.core5.http.HttpHost target, org.apache.hc.core5.http.ClassicHttpRequest request, org.apache.hc.core5.http.protocol.HttpContext context) <T> T
execute
(org.apache.hc.core5.http.HttpHost target, org.apache.hc.core5.http.ClassicHttpRequest request, org.apache.hc.core5.http.protocol.HttpContext context, org.apache.hc.core5.http.io.HttpClientResponseHandler<? extends T> responseHandler) org.apache.hc.client5.http.io.HttpClientConnectionManager
Returns theHttpClientConnectionManager
associated with the http client.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.hc.client5.http.classic.HttpClient
executeOpen
-
Constructor Details
-
Apache5SdkHttpClient
public Apache5SdkHttpClient(org.apache.hc.client5.http.classic.HttpClient delegate, org.apache.hc.client5.http.io.HttpClientConnectionManager cm)
-
-
Method Details
-
execute
public org.apache.hc.core5.http.HttpResponse execute(org.apache.hc.core5.http.ClassicHttpRequest request) throws IOException - Specified by:
execute
in interfaceorg.apache.hc.client5.http.classic.HttpClient
- Throws:
IOException
-
execute
public org.apache.hc.core5.http.HttpResponse execute(org.apache.hc.core5.http.ClassicHttpRequest request, org.apache.hc.core5.http.protocol.HttpContext context) throws IOException - Specified by:
execute
in interfaceorg.apache.hc.client5.http.classic.HttpClient
- Throws:
IOException
-
execute
public org.apache.hc.core5.http.ClassicHttpResponse execute(org.apache.hc.core5.http.HttpHost target, org.apache.hc.core5.http.ClassicHttpRequest request) throws IOException - Specified by:
execute
in interfaceorg.apache.hc.client5.http.classic.HttpClient
- Throws:
IOException
-
execute
public org.apache.hc.core5.http.HttpResponse execute(org.apache.hc.core5.http.HttpHost target, org.apache.hc.core5.http.ClassicHttpRequest request, org.apache.hc.core5.http.protocol.HttpContext context) throws IOException - Specified by:
execute
in interfaceorg.apache.hc.client5.http.classic.HttpClient
- Throws:
IOException
-
execute
public <T> T execute(org.apache.hc.core5.http.ClassicHttpRequest request, org.apache.hc.core5.http.io.HttpClientResponseHandler<? extends T> responseHandler) throws IOException - Specified by:
execute
in interfaceorg.apache.hc.client5.http.classic.HttpClient
- Throws:
IOException
-
execute
public <T> T execute(org.apache.hc.core5.http.ClassicHttpRequest request, org.apache.hc.core5.http.protocol.HttpContext context, org.apache.hc.core5.http.io.HttpClientResponseHandler<? extends T> responseHandler) throws IOException - Specified by:
execute
in interfaceorg.apache.hc.client5.http.classic.HttpClient
- Throws:
IOException
-
execute
public <T> T execute(org.apache.hc.core5.http.HttpHost target, org.apache.hc.core5.http.ClassicHttpRequest request, org.apache.hc.core5.http.io.HttpClientResponseHandler<? extends T> responseHandler) throws IOException - Specified by:
execute
in interfaceorg.apache.hc.client5.http.classic.HttpClient
- Throws:
IOException
-
execute
public <T> T execute(org.apache.hc.core5.http.HttpHost target, org.apache.hc.core5.http.ClassicHttpRequest request, org.apache.hc.core5.http.protocol.HttpContext context, org.apache.hc.core5.http.io.HttpClientResponseHandler<? extends T> responseHandler) throws IOException - Specified by:
execute
in interfaceorg.apache.hc.client5.http.classic.HttpClient
- Throws:
IOException
-
getHttpClientConnectionManager
public org.apache.hc.client5.http.io.HttpClientConnectionManager getHttpClientConnectionManager()Description copied from interface:ConnectionManagerAwareHttpClient
Returns theHttpClientConnectionManager
associated with the http client.- Specified by:
getHttpClientConnectionManager
in interfaceConnectionManagerAwareHttpClient
-