接口 HttpMessageDecoder<T>

类型参数:
T - the type of elements in the output stream
所有超级接口:
cn.taketoday.core.codec.Decoder<T>
所有已知实现类:
AbstractJackson2Decoder, Jackson2CborDecoder, Jackson2JsonDecoder, Jackson2SmileDecoder

public interface HttpMessageDecoder<T> extends cn.taketoday.core.codec.Decoder<T>
Extension of Decoder exposing extra methods relevant in the context of HTTP request or response body decoding.
从以下版本开始:
4.0
作者:
Rossen Stoyanchev
  • 方法概要

    修饰符和类型
    方法
    说明
    getDecodeHints(cn.taketoday.core.ResolvableType actualType, cn.taketoday.core.ResolvableType elementType, ServerHttpRequest request, ServerHttpResponse response)
    Get decoding hints based on the server request or annotations on the target controller method parameter.

    从接口继承的方法 cn.taketoday.core.codec.Decoder

    canDecode, decode, decode, decodeToMono, getDecodableMimeTypes, getDecodableMimeTypes
  • 方法详细资料

    • getDecodeHints

      Map<String,Object> getDecodeHints(cn.taketoday.core.ResolvableType actualType, cn.taketoday.core.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 from Parameter, i.e. providing access to method parameter annotations
      elementType - the element type within Flux/Mono that we're trying to decode to
      request - the current request
      response - the current response
      返回:
      a Map with hints, possibly empty