Class SingleBodyInserter<T>
- java.lang.Object
-
- org.bremersee.apiclient.webflux.contract.spring.AbstractRequestBodyInserter
-
- org.bremersee.apiclient.webflux.contract.spring.SingleBodyInserter<T>
-
- Type Parameters:
T
- the type parameter
- All Implemented Interfaces:
BiFunction<Invocation,org.springframework.web.reactive.function.client.WebClient.RequestBodyUriSpec,org.springframework.web.reactive.function.client.WebClient.RequestHeadersUriSpec<?>>
,RequestBodyInserter
- Direct Known Subclasses:
DataBuffersInserter
,FormDataInserter
,PublisherInserter
,ResourceInserter
,ValueInserter
public abstract class SingleBodyInserter<T> extends AbstractRequestBodyInserter
The single body inserter.- Author:
- Christian Bremer
-
-
Constructor Summary
Constructors Constructor Description SingleBodyInserter()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description org.springframework.web.reactive.function.client.WebClient.RequestHeadersUriSpec<?>
apply(Invocation invocation, org.springframework.web.reactive.function.client.WebClient.RequestBodyUriSpec requestBodyUriSpec)
protected abstract org.springframework.web.reactive.function.client.WebClient.RequestHeadersUriSpec<?>
insert(T body, org.springframework.web.reactive.function.client.WebClient.RequestBodyUriSpec requestBodyUriSpec)
Insert request headers uri spec.protected abstract boolean
isPossibleBodyValue(InvocationParameter invocationParameter)
Is possible body value boolean.protected abstract T
mapBody(InvocationParameter invocationParameter)
Map body.-
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 abstract boolean isPossibleBodyValue(InvocationParameter invocationParameter)
Description copied from class:AbstractRequestBodyInserter
Is possible body value boolean.- Specified by:
isPossibleBodyValue
in classAbstractRequestBodyInserter
- Parameters:
invocationParameter
- the invocation parameter- Returns:
- the boolean
-
apply
public org.springframework.web.reactive.function.client.WebClient.RequestHeadersUriSpec<?> apply(Invocation invocation, org.springframework.web.reactive.function.client.WebClient.RequestBodyUriSpec requestBodyUriSpec)
-
insert
protected abstract org.springframework.web.reactive.function.client.WebClient.RequestHeadersUriSpec<?> insert(T body, org.springframework.web.reactive.function.client.WebClient.RequestBodyUriSpec requestBodyUriSpec)
Insert request headers uri spec.- Parameters:
body
- the bodyrequestBodyUriSpec
- the request body uri spec- Returns:
- the request headers uri spec
-
mapBody
protected abstract T mapBody(InvocationParameter invocationParameter)
Map body.- Parameters:
invocationParameter
- the invocation parameter- Returns:
- the t
-
-