public interface ReactiveInvoker
ReactiveRestClient.ReactiveRequestDefinition.| Modifier and Type | Method and Description |
|---|---|
<T,R> reactor.core.publisher.Mono<ReactiveResponseEntity<T>> |
invoke(ReactiveRestClient.ReactiveRequestDefinition requestDefinition,
com.holonplatform.http.HttpMethod method,
com.holonplatform.http.rest.RequestEntity<R> requestEntity,
com.holonplatform.http.rest.ResponseType<T> responseType,
boolean onlySuccessfulStatusCode)
Invoke a request asynchronously using current given
request definition. |
<T,R> reactor.core.publisher.Mono<ReactiveResponseEntity<T>> invoke(ReactiveRestClient.ReactiveRequestDefinition requestDefinition, com.holonplatform.http.HttpMethod method, com.holonplatform.http.rest.RequestEntity<R> requestEntity, com.holonplatform.http.rest.ResponseType<T> responseType, boolean onlySuccessfulStatusCode)
request definition.T - Response typeR - Request entity typerequestDefinition - Request definitionmethod - Request methodrequestEntity - Request message payloadresponseType - Expected response payload typeonlySuccessfulStatusCode - true to return only 2xx status code response and throw
an UnsuccessfulResponseException otherwise, false to return any status code responsesMono to handle the ReactiveResponseEntity object as the result of the request
invocationCopyright © 2019 The Holon Platform. All rights reserved.