Class ResourceInserter
- java.lang.Object
-
- org.bremersee.apiclient.webflux.contract.spring.AbstractRequestBodyInserter
-
- org.bremersee.apiclient.webflux.contract.spring.SingleBodyInserter<org.springframework.core.io.Resource>
-
- org.bremersee.apiclient.webflux.contract.spring.ResourceInserter
-
- All Implemented Interfaces:
BiFunction<Invocation,org.springframework.web.reactive.function.client.WebClient.RequestBodyUriSpec,org.springframework.web.reactive.function.client.WebClient.RequestHeadersUriSpec<?>>
,RequestBodyInserter
public class ResourceInserter extends SingleBodyInserter<org.springframework.core.io.Resource>
The resource inserter.- Author:
- Christian Bremer
-
-
Constructor Summary
Constructors Constructor Description ResourceInserter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.springframework.web.reactive.function.client.WebClient.RequestHeadersUriSpec<?>
insert(org.springframework.core.io.Resource 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 org.springframework.core.io.Resource
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<org.springframework.core.io.Resource>
- Parameters:
invocationParameter
- the invocation parameter- Returns:
- the boolean
-
mapBody
protected org.springframework.core.io.Resource mapBody(InvocationParameter invocationParameter)
Description copied from class:SingleBodyInserter
Map body.- Specified by:
mapBody
in classSingleBodyInserter<org.springframework.core.io.Resource>
- Parameters:
invocationParameter
- the invocation parameter- Returns:
- the t
-
insert
protected org.springframework.web.reactive.function.client.WebClient.RequestHeadersUriSpec<?> insert(org.springframework.core.io.Resource 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<org.springframework.core.io.Resource>
- Parameters:
body
- the bodyrequestBodyUriSpec
- the request body uri spec- Returns:
- the request headers uri spec
-
-