Class ValueInserter
- java.lang.Object
-
- org.bremersee.apiclient.webflux.contract.spring.AbstractRequestBodyInserter
-
- org.bremersee.apiclient.webflux.contract.spring.SingleBodyInserter<Object>
-
- org.bremersee.apiclient.webflux.contract.spring.ValueInserter
-
- All Implemented Interfaces:
BiFunction<Invocation,org.springframework.web.reactive.function.client.WebClient.RequestBodyUriSpec,org.springframework.web.reactive.function.client.WebClient.RequestHeadersUriSpec<?>>
,RequestBodyInserter
public class ValueInserter extends SingleBodyInserter<Object>
The value inserter.- Author:
- Christian Bremer
-
-
Constructor Summary
Constructors Constructor Description ValueInserter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.springframework.web.reactive.function.client.WebClient.RequestHeadersUriSpec<?>
insert(Object body, org.springframework.web.reactive.function.client.WebClient.RequestBodyUriSpec requestBodyUriSpec)
Insert request headers uri spec.protected boolean
isPossibleBodyValue(InvocationParameter invocationParameter)
Is possible body value boolean.protected Object
mapBody(InvocationParameter invocationParameter)
Map body.-
Methods inherited from class org.bremersee.apiclient.webflux.contract.spring.SingleBodyInserter
apply
-
Methods inherited from class org.bremersee.apiclient.webflux.contract.spring.AbstractRequestBodyInserter
canInsert, canInsert, findPossibleBodies, hasMappingAnnotation, isPossibleBody
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.function.BiFunction
andThen
-
-
-
-
Method Detail
-
isPossibleBodyValue
protected boolean isPossibleBodyValue(InvocationParameter invocationParameter)
Description copied from class:AbstractRequestBodyInserter
Is possible body value boolean.- Specified by:
isPossibleBodyValue
in classSingleBodyInserter<Object>
- Parameters:
invocationParameter
- the invocation parameter- Returns:
- the boolean
-
mapBody
protected Object mapBody(InvocationParameter invocationParameter)
Description copied from class:SingleBodyInserter
Map body.- Specified by:
mapBody
in classSingleBodyInserter<Object>
- Parameters:
invocationParameter
- the invocation parameter- Returns:
- the t
-
insert
protected org.springframework.web.reactive.function.client.WebClient.RequestHeadersUriSpec<?> insert(Object body, org.springframework.web.reactive.function.client.WebClient.RequestBodyUriSpec requestBodyUriSpec)
Description copied from class:SingleBodyInserter
Insert request headers uri spec.- Specified by:
insert
in classSingleBodyInserter<Object>
- Parameters:
body
- the bodyrequestBodyUriSpec
- the request body uri spec- Returns:
- the request headers uri spec
-
-