接口 BodyInserter<T,M extends ReactiveHttpOutputMessage>

类型参数:
T - the type of data to insert
M - the type of ReactiveHttpOutputMessage this inserter can be applied to
所有已知子接口:
BodyInserters.FormInserter<T>, BodyInserters.MultipartInserter
所有已知实现类:
BodyInserters.DefaultFormInserter, BodyInserters.DefaultMultipartInserter
函数接口:
这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。

@FunctionalInterface public interface BodyInserter<T,M extends ReactiveHttpOutputMessage>
A combination of functions that can populate a ReactiveHttpOutputMessage body.
从以下版本开始:
4.0
作者:
Arjen Poutsma
另请参阅:
  • 嵌套类概要

    嵌套类
    修饰符和类型
    接口
    说明
    static interface 
    Defines the context used during the insertion.
  • 方法概要

    修饰符和类型
    方法
    说明
    reactor.core.publisher.Mono<Void>
    insert(M outputMessage, BodyInserter.Context context)
    Insert into the given output message.
  • 方法详细资料

    • insert

      reactor.core.publisher.Mono<Void> insert(M outputMessage, BodyInserter.Context context)
      Insert into the given output message.
      参数:
      outputMessage - the response to insert into
      context - the context to use
      返回:
      a Mono that indicates completion or error