接口 BodyExtractor<T,M extends ReactiveHttpInputMessage>
- 类型参数:
T- the type of data to extractM- the type ofReactiveHttpInputMessagethis extractor can be applied to
- 函数接口:
- 这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。
@FunctionalInterface public interface BodyExtractor<T,M extends ReactiveHttpInputMessage>
A function that can extract data from aReactiveHttpInputMessagebody.- 从以下版本开始:
- 5.0
- 作者:
- Arjen Poutsma
- 另请参阅:
BodyExtractors
嵌套类概要
嵌套类 修饰符和类型 接口 说明 static interfaceBodyExtractor.ContextDefines the context used during the extraction.
方法详细资料
extract
T extract(M inputMessage, BodyExtractor.Context context)
Extract from the given input message.- 参数:
inputMessage- the request to extract fromcontext- the configuration to use- 返回:
- the extracted data