接口 HttpMessageDecoder<T>
- 类型参数:
T
- the type of elements in the output stream
- 所有超级接口:
Decoder<T>
public interface HttpMessageDecoder<T> extends Decoder<T>
Extension ofDecoder
exposing extra methods relevant in the context of HTTP request or response body decoding.- 从以下版本开始:
- 5.0
- 作者:
- Rossen Stoyanchev
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 Map<String,Object>
getDecodeHints(ResolvableType actualType, ResolvableType elementType, ServerHttpRequest request, ServerHttpResponse response)
Get decoding hints based on the server request or annotations on the target controller method parameter.从接口继承的方法 org.springframework.core.codec.Decoder
canDecode, decode, decode, decodeToMono, getDecodableMimeTypes
方法详细资料
getDecodeHints
Map<String,Object> getDecodeHints(ResolvableType actualType, ResolvableType elementType, ServerHttpRequest request, ServerHttpResponse response)
Get decoding hints based on the server request or annotations on the target controller method parameter.- 参数:
actualType
- the actual target type to decode to, possibly a reactive wrapper and sourced fromMethodParameter
, i.e. providing access to method parameter annotationselementType
- the element type withinFlux/Mono
that we're trying to decode torequest
- the current requestresponse
- the current response- 返回:
- a Map with hints, possibly empty