Class JsonpBodyReader

    • Method Detail

      • read

        public <U extends javax.json.JsonStructure> Single<U> read​(Flow.Publisher<DataChunk> publisher,
                                                                   GenericType<U> type,
                                                                   MessageBodyReaderContext context)
        Description copied from interface: MessageBodyReader
        Convert a HTTP payload into a Single publisher of the given type.
        Specified by:
        read in interface MessageBodyReader<javax.json.JsonStructure>
        Type Parameters:
        U - actual requested type parameter
        Parameters:
        publisher - HTTP payload
        type - requested type
        context - the context providing the headers abstraction
        Returns:
        Single publisher