-
- 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 Modifier and Type Method Description 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
-
-