Package org.bremersee.apiclient.webflux
Interface ReactiveContract
-
- All Known Implementing Classes:
ReactiveSpringContract
@Immutable @Valid public interface ReactiveContract
The reactive contract.- Author:
- Christian Bremer
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static org.bremersee.apiclient.webflux.ImmutableReactiveContract.Builder
builder()
Builder.@NotNull BiConsumer<Invocation,org.springframework.util.MultiValueMap<String,String>>
getCookiesConsumer()
Gets cookies consumer.@NotNull BiConsumer<Invocation,org.springframework.http.HttpHeaders>
getHeadersConsumer()
Gets headers consumer.@NotNull BiFunction<Invocation,org.springframework.web.reactive.function.client.WebClient.RequestBodyUriSpec,org.springframework.web.reactive.function.client.WebClient.RequestHeadersUriSpec<?>>
getRequestBodyInserterFunction()
Gets request body inserter function.@NotNull BiFunction<Invocation,org.springframework.web.util.UriBuilder,URI>
getRequestUriFunction()
Gets request uri function.@NotNull BiFunction<Invocation,org.springframework.web.reactive.function.client.WebClient,org.springframework.web.reactive.function.client.WebClient.RequestHeadersUriSpec<?>>
getRequestUriSpecFunction()
Gets request uri spec function.@NotNull BiFunction<Invocation,org.springframework.web.reactive.function.client.WebClient.ResponseSpec,org.reactivestreams.Publisher<?>>
getResponseFunction()
Gets response function.
-
-
-
Method Detail
-
builder
static org.bremersee.apiclient.webflux.ImmutableReactiveContract.Builder builder()
Builder.- Returns:
- the immutable reactive contract . builder
-
getCookiesConsumer
@NotNull @NotNull BiConsumer<Invocation,org.springframework.util.MultiValueMap<String,String>> getCookiesConsumer()
Gets cookies consumer.- Returns:
- the cookies consumer
-
getHeadersConsumer
@NotNull @NotNull BiConsumer<Invocation,org.springframework.http.HttpHeaders> getHeadersConsumer()
Gets headers consumer.- Returns:
- the headers consumer
-
getRequestUriFunction
@NotNull @NotNull BiFunction<Invocation,org.springframework.web.util.UriBuilder,URI> getRequestUriFunction()
Gets request uri function.- Returns:
- the request uri function
-
getRequestUriSpecFunction
@NotNull @NotNull BiFunction<Invocation,org.springframework.web.reactive.function.client.WebClient,org.springframework.web.reactive.function.client.WebClient.RequestHeadersUriSpec<?>> getRequestUriSpecFunction()
Gets request uri spec function.- Returns:
- the request uri spec function
-
getRequestBodyInserterFunction
@NotNull @NotNull BiFunction<Invocation,org.springframework.web.reactive.function.client.WebClient.RequestBodyUriSpec,org.springframework.web.reactive.function.client.WebClient.RequestHeadersUriSpec<?>> getRequestBodyInserterFunction()
Gets request body inserter function.- Returns:
- the request body inserter function
-
getResponseFunction
@NotNull @NotNull BiFunction<Invocation,org.springframework.web.reactive.function.client.WebClient.ResponseSpec,org.reactivestreams.Publisher<?>> getResponseFunction()
Gets response function.- Returns:
- the response function
-
-