接口 BodyInserter<T,M extends ReactiveHttpOutputMessage>
- 类型参数:
T
- the type of data to insertM
- the type ofReactiveHttpOutputMessage
this inserter can be applied to
- 函数接口:
- 这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。
@FunctionalInterface public interface BodyInserter<T,M extends ReactiveHttpOutputMessage>
A combination of functions that can populate aReactiveHttpOutputMessage
body.- 从以下版本开始:
- 5.0
- 作者:
- Arjen Poutsma
- 另请参阅:
BodyInserters
嵌套类概要
嵌套类 修饰符和类型 接口 说明 static interface
BodyInserter.Context
Defines the context used during the insertion.
方法详细资料
insert
reactor.core.publisher.Mono<Void> insert(M outputMessage, BodyInserter.Context context)
Insert into the given output message.- 参数:
outputMessage
- the response to insert intocontext
- the context to use- 返回:
- a
Mono
that indicates completion or error