-
- Type Parameters:
T
- type or base type supported by the operator
- All Superinterfaces:
MessageBodyOperator<MessageBodyWriterContext>
- All Known Implementing Classes:
BodyPartBodyStreamWriter
public interface MessageBodyStreamWriter<T> extends MessageBodyOperator<MessageBodyWriterContext>
Conversion operator that generate HTTP payload from 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 default Function<MessageBodyWriterContext,Flow.Publisher<DataChunk>>
marshall(Flow.Publisher<T> publisher, GenericType<T> type)
Create a marshalling function that can be used to marshall the publisher with a context.Flow.Publisher<DataChunk>
write(Flow.Publisher<? extends T> publisher, GenericType<? extends T> type, MessageBodyWriterContext context)
Generate HTTP payload from the given stream of objects.-
Methods inherited from interface io.helidon.media.common.MessageBodyOperator
accept
-
-
-
-
Method Detail
-
write
Flow.Publisher<DataChunk> write(Flow.Publisher<? extends T> publisher, GenericType<? extends T> type, MessageBodyWriterContext context)
Generate HTTP payload from the given stream of objects.- Parameters:
publisher
- objects to convert to payloadtype
- requested type representationcontext
- writer context- Returns:
- HTTP payload publisher
-
marshall
default Function<MessageBodyWriterContext,Flow.Publisher<DataChunk>> marshall(Flow.Publisher<T> publisher, GenericType<T> type)
Create a marshalling function that can be used to marshall the publisher with a context.- Parameters:
publisher
- objects to convert to payloadtype
- requested type representation- Returns:
- Marshalling function
-
-