Package com.commercetools.compat
Class CompatClient
java.lang.Object
com.commercetools.compat.CompatClient
- All Implemented Interfaces:
ApiHttpClient
,AsyncApiClient<CompletableFuture<?>>
,CompletableFutureApiClient
,VrapHttpClient
,AutoCloseable
-
Field Summary
Fields inherited from interface io.vrap.rmf.base.client.ApiHttpClient
CLOSED_MESSAGE, DEFAULT_TIMEOUT
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
<O,
TO> CompletableFuture<ApiHttpResponse<O>> execute
(SphereRequest<TO> request, Class<O> outputType) CompletableFuture<ApiHttpResponse<byte[]>>
execute
(ApiHttpRequest request) <O,
TO> ApiHttpResponse<O> executeBlocking
(SphereRequest<TO> request, Class<O> outputType) <O,
TO> ApiHttpResponse<O> executeBlocking
(SphereRequest<TO> request, Class<O> outputType, Duration duration) static CompatClient
of
(ApiHttpClient client, String projectKey) Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.vrap.rmf.base.client.ApiHttpClient
execute, execute, execute, execute, execute, execute, execute, execute, execute, executeBlocking, executeBlocking, executeBlocking, executeBlocking, send, sendBlocking
-
Method Details
-
getBaseUri
- Specified by:
getBaseUri
in interfaceApiHttpClient
-
of
-
execute
public <O,TO> CompletableFuture<ApiHttpResponse<O>> execute(SphereRequest<TO> request, Class<O> outputType) -
executeBlocking
-
executeBlocking
public <O,TO> ApiHttpResponse<O> executeBlocking(SphereRequest<TO> request, Class<O> outputType, Duration duration) -
getSerializerService
- Specified by:
getSerializerService
in interfaceApiHttpClient
-
execute
- Specified by:
execute
in interfaceVrapHttpClient
-
close
- Specified by:
close
in interfaceAutoCloseable
- Throws:
Exception
-