- Type Parameters:
T- type or base type supported by the operator
- All Superinterfaces:
MessageBodyOperator<MessageBodyReaderContext>
Conversion operator that can convert HTTP payload into one object.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.helidon.media.common.MessageBodyOperator
MessageBodyOperator.PredicateResult -
Method Summary
Modifier and TypeMethodDescriptionread(Flow.Publisher<DataChunk> publisher, GenericType<U> type, MessageBodyReaderContext context) Convert a HTTP payload into a Single publisher of the given type.default booleanWhether this reader processes input incrementally without materializing it in memory.unmarshall(MessageBodyReadableContent content, GenericType<T> type) Unmarshall the given content using this reader.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
-
streaming
default boolean streaming()Whether this reader processes input incrementally without materializing it in memory. This includes copying input to a file and returning a lazy entity that consumes input later. Streaming readers are not subject tomax-buffered-entity-size; independently configured payload limits still apply. The default isfalse, including for application-defined readers. A lazy entity owns its subscription and must release its input when consumption finishes or is cancelled.- Returns:
- whether the reader processes input without materializing it in memory
-
read
<U extends T> Single<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 payloadtype- requested typecontext- the context providing the headers abstraction- Returns:
- Single publisher
-
unmarshall
Unmarshall the given content using this reader.- Parameters:
content- readable content to unmarshalltype- requested type- Returns:
- Single publisher
-
unmarshall
Unmarshall the given content using this reader.- Parameters:
content- readable content to unmarshalltype- requested type- Returns:
- Single publisher
-