-
- Type Parameters:
T
- type or base type supported by the operator
- All Superinterfaces:
MessageBodyOperator<MessageBodyReaderContext>
- All Known Implementing Classes:
BodyPartBodyStreamReader
public interface MessageBodyStreamReader<T> extends MessageBodyOperator<MessageBodyReaderContext>
Conversion operator that can convert HTTP payload into a stream of objects.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.helidon.media.common.MessageBodyOperator
MessageBodyOperator.PredicateResult
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description <U extends T>
Flow.Publisher<U>read(Flow.Publisher<DataChunk> publisher, GenericType<U> type, MessageBodyReaderContext context)
Convert the given HTTP payload into objects of the given type.default Flow.Publisher<T>
unmarshall(MessageBodyReadableContent content, GenericType<T> type)
Unmarshall the given content using this reader.default Flow.Publisher<T>
unmarshall(MessageBodyReadableContent content, Class<T> type)
Unmarshall the given content using this reader.-
Methods inherited from interface io.helidon.media.common.MessageBodyOperator
accept
-
-
-
-
Method Detail
-
read
<U extends T> Flow.Publisher<U> read(Flow.Publisher<DataChunk> publisher, GenericType<U> type, MessageBodyReaderContext context)
Convert the given HTTP payload into objects of the given type.- Type Parameters:
U
- requested type- Parameters:
publisher
- HTTP payloadtype
- requested type representationcontext
- reader context- Returns:
- publisher
-
unmarshall
default Flow.Publisher<T> unmarshall(MessageBodyReadableContent content, GenericType<T> type)
Unmarshall the given content using this reader.- Parameters:
content
- readable content to unmarshalltype
- requested type- Returns:
- publisher
-
unmarshall
default Flow.Publisher<T> unmarshall(MessageBodyReadableContent content, Class<T> type)
Unmarshall the given content using this reader.- Parameters:
content
- readable content to unmarshalltype
- requested type- Returns:
- publisher
-
-