Package io.vrap.rmf.base.client
Class ContextApiHttpClientImpl
java.lang.Object
io.vrap.rmf.base.client.AutoCloseableService
io.vrap.rmf.base.client.ContextApiHttpClientImpl
- All Implemented Interfaces:
ApiHttpClient
,AsyncApiClient<CompletableFuture<?>>
,CompletableFutureApiClient
,ContextApiHttpClient
,ContextAware<ContextApiHttpClient>
,VrapHttpClient
,AutoCloseable
-
Field Summary
Fields inherited from interface io.vrap.rmf.base.client.ApiHttpClient
CLOSED_MESSAGE, DEFAULT_TIMEOUT
-
Constructor Summary
ConstructorDescriptionContextApiHttpClientImpl
(ApiHttpClient client, boolean closeHttpClient) ContextApiHttpClientImpl
(ApiHttpClient client, Map<Object, Object> contextMap) ContextApiHttpClientImpl
(ApiHttpClient client, Map<Object, Object> contextMap, boolean closeHttpClient) ContextApiHttpClientImpl
(ApiHttpClient client, Map<Object, Object> contextMap, Consumer<ContextAware<ContextApiHttpClient>> consumer) ContextApiHttpClientImpl
(ApiHttpClient client, Map<Object, Object> contextMap, Consumer<ContextAware<ContextApiHttpClient>> consumer, boolean closeHttpClient) -
Method Summary
Modifier and TypeMethodDescriptionaddContext
(Object key, Object value) addContext
(T value) CompletableFuture<ApiHttpResponse<byte[]>>
execute
(ApiHttpRequest request) <T> T
getContext
(Class<T> key) getContext
(Object key) int
toString()
withContextMap
(Map<Object, Object> contextMap) Methods inherited from class io.vrap.rmf.base.client.AutoCloseableService
close, closeQuietly, equals, hashCode
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
Methods inherited from interface java.lang.AutoCloseable
close
-
Constructor Details
-
ContextApiHttpClientImpl
-
ContextApiHttpClientImpl
-
ContextApiHttpClientImpl
public ContextApiHttpClientImpl(ApiHttpClient client, Map<Object, Object> contextMap, Consumer<ContextAware<ContextApiHttpClient>> consumer) -
ContextApiHttpClientImpl
-
ContextApiHttpClientImpl
public ContextApiHttpClientImpl(ApiHttpClient client, Map<Object, Object> contextMap, boolean closeHttpClient) -
ContextApiHttpClientImpl
public ContextApiHttpClientImpl(ApiHttpClient client, Map<Object, Object> contextMap, Consumer<ContextAware<ContextApiHttpClient>> consumer, boolean closeHttpClient) -
ContextApiHttpClientImpl
-
-
Method Details
-
getContextMap
- Specified by:
getContextMap
in interfaceContextAware<ContextApiHttpClient>
-
withContextMap
- Specified by:
withContextMap
in interfaceContextAware<ContextApiHttpClient>
-
getContext
- Specified by:
getContext
in interfaceContextAware<ContextApiHttpClient>
-
addContext
- Specified by:
addContext
in interfaceContextAware<ContextApiHttpClient>
-
getContext
- Specified by:
getContext
in interfaceContextAware<ContextApiHttpClient>
-
addContext
- Specified by:
addContext
in interfaceContextAware<ContextApiHttpClient>
-
getSerializerService
- Specified by:
getSerializerService
in interfaceApiHttpClient
-
getBaseUri
- Specified by:
getBaseUri
in interfaceApiHttpClient
-
execute
- Specified by:
execute
in interfaceVrapHttpClient
-
toString
-
reflectionHashCode
public int reflectionHashCode()
-