Interface HttpMessageEncoder<T>

    • Method Detail

      • getStreamingMediaTypes

        java.util.List<MediaType> getStreamingMediaTypes()
        Return "streaming" media types for which flushing should be performed automatically vs at the end of the input stream.
      • getEncodeHints

        default java.util.Map<java.lang.String,java.lang.Object> getEncodeHints(ResolvableType actualType,
                                                                                ResolvableType elementType,
                                                                                MediaType mediaType,
                                                                                ServerHttpRequest request,
                                                                                ServerHttpResponse response)
        Get decoding hints based on the server request or annotations on the target controller method parameter.
        actualType - the actual source type to encode, possibly a reactive wrapper and sourced from MethodParameter, i.e. providing access to method annotations.
        elementType - the element type within Flux/Mono that we're trying to encode.
        request - the current request
        response - the current response
        a Map with hints, possibly empty