- Type Parameters:
T- type or base type supported by the operator
- All Superinterfaces:
MessageBodyOperator<MessageBodyReaderContext>
- All Known Implementing Classes:
BodyPartBodyStreamReader
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
Modifier and TypeMethodDescription<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 Details
-
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
Unmarshall the given content using this reader.- Parameters:
content- readable content to unmarshalltype- requested type- Returns:
- publisher
-
unmarshall
Unmarshall the given content using this reader.- Parameters:
content- readable content to unmarshalltype- requested type- Returns:
- publisher
-