-
- Type Parameters:
T- type or base type supported by the operator
- All Superinterfaces:
MessageBodyOperator<MessageBodyWriterContext>
- All Known Implementing Classes:
ByteChannelBodyWriter,CharSequenceBodyWriter,FileBodyWriter,JacksonBodyWriter,JsonbBodyWriter,JsonpBodyWriter,PathBodyWriter,ThrowableBodyWriter
public interface MessageBodyWriter<T> extends MessageBodyOperator<MessageBodyWriterContext>
Conversion operator that generate HTTP payload from objects.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Flow.Publisher<DataChunk>write(Single<T> single, GenericType<? extends T> type, MessageBodyWriterContext context)Generate HTTP payload from the objects of the given type.-
Methods inherited from interface io.helidon.media.common.MessageBodyOperator
accept
-
-
-
-
Method Detail
-
write
Flow.Publisher<DataChunk> write(Single<T> single, GenericType<? extends T> type, MessageBodyWriterContext context)
Generate HTTP payload from the objects of the given type.- Parameters:
single- object single publisher to convert to payloadtype- requested typecontext- the context providing the headers abstraction- Returns:
- Publisher of objects
-
-