T
- the type of elements in the output streampublic interface HttpMessageDecoder<T>
extends org.springframework.core.codec.Decoder<T>
Decoder
exposing extra methods relevant in the context
of HTTP request or response body decoding.Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
getDecodeHints(org.springframework.core.ResolvableType actualType,
org.springframework.core.ResolvableType elementType,
ServerHttpRequest request,
ServerHttpResponse response)
Get decoding hints based on the server request or annotations on the
target controller method parameter.
|
Map<String,Object> getDecodeHints(org.springframework.core.ResolvableType actualType, org.springframework.core.ResolvableType elementType, ServerHttpRequest request, ServerHttpResponse response)
actualType
- the actual target type to decode to, possibly a reactive
wrapper and sourced from MethodParameter
,
i.e. providing access to method parameter annotationselementType
- the element type within Flux/Mono
that we're
trying to decode torequest
- the current requestresponse
- the current response