Class Apache5SdkHttpClient
- java.lang.Object
-
- software.amazon.awssdk.http.apache5.internal.impl.Apache5SdkHttpClient
-
- All Implemented Interfaces:
org.apache.hc.client5.http.classic.HttpClient,ConnectionManagerAwareHttpClient
public class Apache5SdkHttpClient extends Object implements ConnectionManagerAwareHttpClient
An instance ofConnectionManagerAwareHttpClientthat delegates all the requests to the given http client.
-
-
Constructor Summary
Constructors Constructor Description Apache5SdkHttpClient(org.apache.hc.client5.http.classic.HttpClient delegate, org.apache.hc.client5.http.io.HttpClientConnectionManager cm)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.hc.core5.http.HttpResponseexecute(org.apache.hc.core5.http.ClassicHttpRequest request)<T> Texecute(org.apache.hc.core5.http.ClassicHttpRequest request, org.apache.hc.core5.http.io.HttpClientResponseHandler<? extends T> responseHandler)org.apache.hc.core5.http.HttpResponseexecute(org.apache.hc.core5.http.ClassicHttpRequest request, org.apache.hc.core5.http.protocol.HttpContext context)<T> Texecute(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.ClassicHttpResponseexecute(org.apache.hc.core5.http.HttpHost target, org.apache.hc.core5.http.ClassicHttpRequest request)<T> Texecute(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.HttpResponseexecute(org.apache.hc.core5.http.HttpHost target, org.apache.hc.core5.http.ClassicHttpRequest request, org.apache.hc.core5.http.protocol.HttpContext context)<T> Texecute(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.core5.http.ClassicHttpResponseexecuteOpen(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.client5.http.io.HttpClientConnectionManagergetHttpClientConnectionManager()Returns theHttpClientConnectionManagerassociated with the http client.
-
-
-
Method Detail
-
execute
public org.apache.hc.core5.http.HttpResponse execute(org.apache.hc.core5.http.ClassicHttpRequest request) throws IOException- Specified by:
executein 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:
executein 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:
executein interfaceorg.apache.hc.client5.http.classic.HttpClient- Throws:
IOException
-
executeOpen
public org.apache.hc.core5.http.ClassicHttpResponse executeOpen(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:
executeOpenin 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:
executein 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:
executein 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:
executein 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:
executein 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:
executein interfaceorg.apache.hc.client5.http.classic.HttpClient- Throws:
IOException
-
getHttpClientConnectionManager
public org.apache.hc.client5.http.io.HttpClientConnectionManager getHttpClientConnectionManager()
Description copied from interface:ConnectionManagerAwareHttpClientReturns theHttpClientConnectionManagerassociated with the http client.- Specified by:
getHttpClientConnectionManagerin interfaceConnectionManagerAwareHttpClient
-
-