T
- the type of data to insertpublic interface BodyInserter<T>
Response
body.Response.body()
,
Response.BodyBuilder.body(BodyInserter)
,
BodyInserters
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Mono<Void> |
insert(ServerHttpResponse response,
StrategiesSupplier strategies)
Insert into the given response.
|
static <T> BodyInserter<T> |
of(BiFunction<ServerHttpResponse,StrategiesSupplier,reactor.core.publisher.Mono<Void>> writer,
Supplier<T> supplier)
Return a new
BodyInserter described by the given writer and supplier functions. |
T |
t()
Return the type contained in the body.
|
reactor.core.publisher.Mono<Void> insert(ServerHttpResponse response, StrategiesSupplier strategies)
response
- the response to insert intostrategies
- the strategies to useMono
that indicates completion or errorT t()
static <T> BodyInserter<T> of(BiFunction<ServerHttpResponse,StrategiesSupplier,reactor.core.publisher.Mono<Void>> writer, Supplier<T> supplier)
BodyInserter
described by the given writer and supplier functions.T
- the type supplied and written by the inserterwriter
- the writer function for the new insertersupplier
- the supplier function for the new inserterBodyInserter