Interface MessageBodyReader<T>

    • Method Detail

      • read

        <U extends TSingle<U> read​(Flow.Publisher<DataChunk> publisher,
                                     GenericType<U> type,
                                     MessageBodyReaderContext context)
        Convert a HTTP payload into a Single publisher of the given type.
        Type Parameters:
        U - actual requested type parameter
        Parameters:
        publisher - HTTP payload
        type - requested type
        context - the context providing the headers abstraction
        Returns:
        Single publisher
      • unmarshall

        default Single<T> unmarshall​(MessageBodyReadableContent content,
                                     GenericType<T> type)
        Unmarshall the given content using this reader.
        Parameters:
        content - readable content to unmarshall
        type - requested type
        Returns:
        Single publisher
      • unmarshall

        default Single<T> unmarshall​(MessageBodyReadableContent content,
                                     Class<T> type)
        Unmarshall the given content using this reader.
        Parameters:
        content - readable content to unmarshall
        type - requested type
        Returns:
        Single publisher