Class ReactiveSpringContract
- java.lang.Object
-
- org.bremersee.apiclient.webflux.contract.spring.ReactiveSpringContract
-
- All Implemented Interfaces:
ReactiveContract
public class ReactiveSpringContract extends Object implements ReactiveContract
The reactive spring contract.- Author:
- Christian Bremer
-
-
Constructor Summary
Constructors Constructor Description ReactiveSpringContract()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BiConsumer<Invocation,org.springframework.util.MultiValueMap<String,String>>
getCookiesConsumer()
Gets cookies consumer.BiConsumer<Invocation,org.springframework.http.HttpHeaders>
getHeadersConsumer()
Gets headers consumer.BiFunction<Invocation,org.springframework.web.reactive.function.client.WebClient.RequestBodyUriSpec,org.springframework.web.reactive.function.client.WebClient.RequestHeadersUriSpec<?>>
getRequestBodyInserterFunction()
Gets request body inserter function.protected List<Function<Invocation,org.springframework.util.MultiValueMap<String,Object>>>
getRequestParametersResolvers()
Gets request parameters resolvers.BiFunction<Invocation,org.springframework.web.util.UriBuilder,URI>
getRequestUriFunction()
Gets request uri function.BiFunction<Invocation,org.springframework.web.reactive.function.client.WebClient,org.springframework.web.reactive.function.client.WebClient.RequestHeadersUriSpec<?>>
getRequestUriSpecFunction()
Gets request uri spec function.BiFunction<Invocation,org.springframework.web.reactive.function.client.WebClient.ResponseSpec,org.reactivestreams.Publisher<?>>
getResponseFunction()
Gets response function.
-
-
-
Method Detail
-
getCookiesConsumer
public BiConsumer<Invocation,org.springframework.util.MultiValueMap<String,String>> getCookiesConsumer()
Description copied from interface:ReactiveContract
Gets cookies consumer.- Specified by:
getCookiesConsumer
in interfaceReactiveContract
- Returns:
- the cookies consumer
-
getHeadersConsumer
public BiConsumer<Invocation,org.springframework.http.HttpHeaders> getHeadersConsumer()
Description copied from interface:ReactiveContract
Gets headers consumer.- Specified by:
getHeadersConsumer
in interfaceReactiveContract
- Returns:
- the headers consumer
-
getRequestUriFunction
public BiFunction<Invocation,org.springframework.web.util.UriBuilder,URI> getRequestUriFunction()
Description copied from interface:ReactiveContract
Gets request uri function.- Specified by:
getRequestUriFunction
in interfaceReactiveContract
- Returns:
- the request uri function
-
getRequestParametersResolvers
protected List<Function<Invocation,org.springframework.util.MultiValueMap<String,Object>>> getRequestParametersResolvers()
Gets request parameters resolvers.- Returns:
- the request parameters resolvers
-
getRequestUriSpecFunction
public BiFunction<Invocation,org.springframework.web.reactive.function.client.WebClient,org.springframework.web.reactive.function.client.WebClient.RequestHeadersUriSpec<?>> getRequestUriSpecFunction()
Description copied from interface:ReactiveContract
Gets request uri spec function.- Specified by:
getRequestUriSpecFunction
in interfaceReactiveContract
- Returns:
- the request uri spec function
-
getRequestBodyInserterFunction
public BiFunction<Invocation,org.springframework.web.reactive.function.client.WebClient.RequestBodyUriSpec,org.springframework.web.reactive.function.client.WebClient.RequestHeadersUriSpec<?>> getRequestBodyInserterFunction()
Description copied from interface:ReactiveContract
Gets request body inserter function.- Specified by:
getRequestBodyInserterFunction
in interfaceReactiveContract
- Returns:
- the request body inserter function
-
getResponseFunction
public BiFunction<Invocation,org.springframework.web.reactive.function.client.WebClient.ResponseSpec,org.reactivestreams.Publisher<?>> getResponseFunction()
Description copied from interface:ReactiveContract
Gets response function.- Specified by:
getResponseFunction
in interfaceReactiveContract
- Returns:
- the response function
-
-