Class AbstractRequestBodyInserter
- java.lang.Object
-
- org.bremersee.apiclient.webflux.contract.spring.AbstractRequestBodyInserter
-
- 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:
MultipartDataInserter
,SingleBodyInserter
public abstract class AbstractRequestBodyInserter extends Object implements RequestBodyInserter
The abstract request body inserter.- Author:
- Christian Bremer
-
-
Constructor Summary
Constructors Constructor Description AbstractRequestBodyInserter()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected boolean
canInsert(List<InvocationParameter> possibleBodies)
Can insert.boolean
canInsert(Invocation invocation)
Can insert boolean.protected List<InvocationParameter>
findPossibleBodies(Invocation invocation)
Find possible bodies list.protected boolean
hasMappingAnnotation(InvocationParameter invocationParameter)
Has mapping annotation boolean.protected boolean
isPossibleBody(InvocationParameter invocationParameter)
Is possible body boolean.protected abstract boolean
isPossibleBodyValue(InvocationParameter invocationParameter)
Is possible body value boolean.-
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, apply
-
-
-
-
Method Detail
-
canInsert
public boolean canInsert(Invocation invocation)
Description copied from interface:RequestBodyInserter
Can insert boolean.- Specified by:
canInsert
in interfaceRequestBodyInserter
- Parameters:
invocation
- the invocation- Returns:
- the boolean
-
canInsert
protected boolean canInsert(List<InvocationParameter> possibleBodies)
Can insert.- Parameters:
possibleBodies
- the possible bodies- Returns:
- the boolean
-
findPossibleBodies
protected List<InvocationParameter> findPossibleBodies(Invocation invocation)
Find possible bodies list.- Parameters:
invocation
- the invocation- Returns:
- the list
-
isPossibleBody
protected boolean isPossibleBody(InvocationParameter invocationParameter)
Is possible body boolean.- Parameters:
invocationParameter
- the invocation parameter- Returns:
- the boolean
-
isPossibleBodyValue
protected abstract boolean isPossibleBodyValue(InvocationParameter invocationParameter)
Is possible body value boolean.- Parameters:
invocationParameter
- the invocation parameter- Returns:
- the boolean
-
hasMappingAnnotation
protected boolean hasMappingAnnotation(InvocationParameter invocationParameter)
Has mapping annotation boolean.- Parameters:
invocationParameter
- the invocation parameter- Returns:
- the boolean
-
-