Package com.commercetools.http.javanet
Class CtJavaNetHttpClient
java.lang.Object
io.vrap.rmf.base.client.HttpClientBase
com.commercetools.http.javanet.CtJavaNetHttpClient
- All Implemented Interfaces:
VrapHttpClient
,Closeable
,AutoCloseable
-
Constructor Summary
ConstructorDescriptionCtJavaNetHttpClient
(BuilderOptions options) CtJavaNetHttpClient
(ExecutorService executor) CtJavaNetHttpClient
(ExecutorService executor, BuilderOptions options) CtJavaNetHttpClient
(ExecutorService executor, Supplier<java.net.http.HttpClient.Builder> builderSupplier) CtJavaNetHttpClient
(Supplier<java.net.http.HttpClient.Builder> builderSupplier) -
Method Summary
Modifier and TypeMethodDescriptionvoid
closes the underlying HTTP clientCompletableFuture<ApiHttpResponse<byte[]>>
execute
(ApiHttpRequest request) Methods inherited from class io.vrap.rmf.base.client.HttpClientBase
close
-
Constructor Details
-
CtJavaNetHttpClient
public CtJavaNetHttpClient() -
CtJavaNetHttpClient
-
CtJavaNetHttpClient
-
CtJavaNetHttpClient
-
CtJavaNetHttpClient
-
CtJavaNetHttpClient
public CtJavaNetHttpClient(ExecutorService executor, Supplier<java.net.http.HttpClient.Builder> builderSupplier)
-
-
Method Details
-
execute
-
closeDelegate
closes the underlying HTTP client- Throws:
Exception
- in case of failure closing the client
-