Uses of Class
io.helidon.media.common.MessageBodyWriterContext
Package
Description
Common classes for processing content with a specific
MediaType
.Helidon Media MultiPart.
A reactive client for rest calls.
Reactive web server API.
-
Uses of MessageBodyWriterContext in io.helidon.media.common
Modifier and TypeMethodDescriptionstatic MessageBodyWriterContext
MessageBodyWriterContext.create()
Create a new empty writer context backed by empty read-only headers.static MessageBodyWriterContext
Create a new empty writer context backed by the specified headers.static MessageBodyWriterContext
MessageBodyWriterContext.create
(Parameters headers) Deprecated, for removal: This API element is subject to removal in a future version.static MessageBodyWriterContext
MessageBodyWriterContext.create
(MediaContext mediaContext, MessageBodyContext.EventListener eventListener, Headers headers, List<MediaType> acceptedTypes) Create a new writer context.static MessageBodyWriterContext
MessageBodyWriterContext.create
(MediaContext mediaContext, MessageBodyContext.EventListener eventListener, Parameters headers, List<MediaType> acceptedTypes) Deprecated, for removal: This API element is subject to removal in a future version.Usecreate(MediaContext, io.helidon.media.common.MessageBodyContext.EventListener, io.helidon.common.http.Headers, java.util.List)
instead, passingHeaders
instead ofParameters
.static MessageBodyWriterContext
MessageBodyWriterContext.create
(MessageBodyWriterContext parent) Create a new parented writer context.static MessageBodyWriterContext
MessageBodyWriterContext.create
(MessageBodyWriterContext parent, Headers headers) Create a new parented writer context backed by the specified headers.static MessageBodyWriterContext
MessageBodyWriterContext.create
(MessageBodyWriterContext parent, Parameters headers) Deprecated, for removal: This API element is subject to removal in a future version.Use (@linkcreate(MessageBodyWriterContext, io.helidon.common.http.Headers)
instead passingHeaders
instead ofParameters
.static MessageBodyWriterContext
MessageBodyWriterContext.create
(MessageBodyWriterContext parent, MessageBodyContext.EventListener eventListener, Headers headers, List<MediaType> acceptedTypes) Create a new writer context.static MessageBodyWriterContext
MessageBodyWriterContext.create
(MessageBodyWriterContext parent, MessageBodyContext.EventListener eventListener, Parameters headers, List<MediaType> acceptedTypes) Deprecated, for removal: This API element is subject to removal in a future version.Usecreate(MessageBodyWriterContext, io.helidon.media.common.MessageBodyContext.EventListener, io.helidon.common.http.Headers, java.util.List)
instead, passingHeaders
instead ofParameters
.MessageBodyWriterContext.registerWriter
(MessageBodyStreamWriter<?> writer) MessageBodyWriterContext.registerWriter
(MessageBodyWriter<?> writer) MessageBodyWriterContext.registerWriter
(Class<T> type, MediaType contentType, Function<? extends T, Flow.Publisher<DataChunk>> function) Deprecated.since 2.0.0, useregisterWriter(MessageBodyWriter)
insteadMessageBodyWriterContext.registerWriter
(Class<T> type, Function<T, Flow.Publisher<DataChunk>> function) Deprecated.since 2.0.0, useregisterWriter(MessageBodyWriter)
insteadMessageBodyWriterContext.registerWriter
(Predicate<?> accept, MediaType contentType, Function<T, Flow.Publisher<DataChunk>> function) Deprecated.since 2.0.0, useregisterWriter(MessageBodyWriter)
insteadMessageBodyWriterContext.registerWriter
(Predicate<?> accept, Function<T, Flow.Publisher<DataChunk>> function) Deprecated.since 2.0.0 useregisterWriter(MessageBodyWriter)
insteadMediaContext.writerContext()
Get the configured writer context.Modifier and TypeMethodDescriptionMessageBodyStreamWriter.marshall
(Flow.Publisher<T> publisher, GenericType<T> type) Create a marshalling function that can be used to marshall the publisher with a context.Create a marshalling function that can be used to marshall the given value with a context.Modifier and TypeMethodDescriptionstatic MessageBodyWriterContext
MessageBodyWriterContext.create
(MessageBodyWriterContext parent) Create a new parented writer context.static MessageBodyWriterContext
MessageBodyWriterContext.create
(MessageBodyWriterContext parent, Headers headers) Create a new parented writer context backed by the specified headers.static MessageBodyWriterContext
MessageBodyWriterContext.create
(MessageBodyWriterContext parent, Parameters headers) Deprecated, for removal: This API element is subject to removal in a future version.Use (@linkcreate(MessageBodyWriterContext, io.helidon.common.http.Headers)
instead passingHeaders
instead ofParameters
.static MessageBodyWriterContext
MessageBodyWriterContext.create
(MessageBodyWriterContext parent, MessageBodyContext.EventListener eventListener, Headers headers, List<MediaType> acceptedTypes) Create a new writer context.static MessageBodyWriterContext
MessageBodyWriterContext.create
(MessageBodyWriterContext parent, MessageBodyContext.EventListener eventListener, Parameters headers, List<MediaType> acceptedTypes) Deprecated, for removal: This API element is subject to removal in a future version.Usecreate(MessageBodyWriterContext, io.helidon.media.common.MessageBodyContext.EventListener, io.helidon.common.http.Headers, java.util.List)
instead, passingHeaders
instead ofParameters
.default void
MediaSupport.register
(MessageBodyReaderContext readerContext, MessageBodyWriterContext writerContext) Method used to register readers and writers.MessageBodyStreamWriter.write
(Flow.Publisher<? extends T> publisher, GenericType<? extends T> type, MessageBodyWriterContext context) Generate HTTP payload from the given stream of objects.MessageBodyWriter.write
(Single<? extends T> single, GenericType<? extends T> type, MessageBodyWriterContext context) Generate HTTP payload from the objects of the given type. -
Uses of MessageBodyWriterContext in io.helidon.media.multipart
Modifier and TypeMethodDescriptionBodyPartBodyStreamWriter.accept
(GenericType<?> type, MessageBodyWriterContext context) MultiPartBodyWriter.accept
(GenericType<?> type, MessageBodyWriterContext context) static MultiPartEncoder
MultiPartEncoder.create
(String boundary, MessageBodyWriterContext context) Create a multipart encoder.WriteableBodyPartContent.init
(MessageBodyWriterContext context) Initialize the body part content.BodyPartBodyStreamWriter.write
(Flow.Publisher<? extends WriteableBodyPart> content, GenericType<? extends WriteableBodyPart> type, MessageBodyWriterContext context) MultiPartBodyWriter.write
(Single<? extends WriteableMultiPart> content, GenericType<? extends WriteableMultiPart> type, MessageBodyWriterContext context) -
Uses of MessageBodyWriterContext in io.helidon.webclient
Modifier and TypeMethodDescriptionWebClientRequestBuilder.writerContext()
Returns writer context of the request builder.Modifier and TypeMethodDescriptionWebClientRequestBuilder.submit
(Function<MessageBodyWriterContext, Flow.Publisher<DataChunk>> function) Performs prepared request and submitting request entity using a marshalling function. -
Uses of MessageBodyWriterContext in io.helidon.webserver
Modifier and TypeMethodDescriptionServerResponse.writerContext()
Get the writer context used to marshall data.WebServer.writerContext()
Get the parentMessageBodyWriterContext
context.Modifier and TypeMethodDescriptionServerResponse.send
(Function<MessageBodyWriterContext, Flow.Publisher<DataChunk>> function) Send a message using the given marshalling function.
create(io.helidon.common.http.Headers)
instead, passingHeaders
instead ofParameters
.