Uses of Interface
io.helidon.common.http.DataChunk
-
Packages that use DataChunk Package Description io.helidon.common.http HTTP APIs and implementations usable by both server and client side of the HTTP story.io.helidon.media.common Common classes for processing content with a specificMediaType
.io.helidon.media.jackson.common Jackson media type support.io.helidon.media.jsonb.common JSON-B media type support.io.helidon.media.jsonp.common JSON-P media type support.io.helidon.media.jsonp.server io.helidon.webserver Reactive web server API. -
-
Uses of DataChunk in io.helidon.common.http
Methods in io.helidon.common.http that return DataChunk Modifier and Type Method Description static DataChunk
DataChunk. create(boolean flush, ByteBuffer data)
Creates a reusable data chunk.static DataChunk
DataChunk. create(boolean flush, ByteBuffer data, boolean readOnly)
Creates a reusable data chunk.static DataChunk
DataChunk. create(boolean flush, ByteBuffer data, Runnable releaseCallback)
Creates a reusable data chunk.static DataChunk
DataChunk. create(boolean flush, ByteBuffer data, Runnable releaseCallback, boolean readOnly)
Creates a reusable data chunk.static DataChunk
DataChunk. create(byte[] bytes)
Creates a simple byte array backed data chunk.static DataChunk
DataChunk. create(ByteBuffer byteBuffer)
Creates a simpleByteBuffer
backed data chunk.default DataChunk
DataChunk. duplicate()
Makes a copy of this data chunk including its underlyingByteBuffer
.Method parameters in io.helidon.common.http with type arguments of type DataChunk Modifier and Type Method Description default CompletionStage<? extends R>
Reader. apply(Flow.Publisher<DataChunk> publisher)
Transforms a publisher into a completion stage.CompletionStage<? extends R>
Reader. apply(Flow.Publisher<DataChunk> publisher, Class<? super R> clazz)
Transforms a publisher into a completion stage.default <T extends R>
CompletionStage<? extends T>Reader. applyAndCast(Flow.Publisher<DataChunk> publisher, Class<T> type)
Transforms a publisher into a completion stage.void
Content. registerFilter(Function<Flow.Publisher<DataChunk>,Flow.Publisher<DataChunk>> function)
Registers a filter that allows a control of the original publisher.void
Content. registerFilter(Function<Flow.Publisher<DataChunk>,Flow.Publisher<DataChunk>> function)
Registers a filter that allows a control of the original publisher.void
Content. subscribe(Flow.Subscriber<? super DataChunk> subscriber)
If possible, adds the given Subscriber to this publisher. -
Uses of DataChunk in io.helidon.media.common
Methods in io.helidon.media.common that return types with arguments of type DataChunk Modifier and Type Method Description static Function<byte[],Flow.Publisher<DataChunk>>
ContentWriters. byteArrayWriter(boolean copy)
Returns a writer function forbyte[]
.static Function<ReadableByteChannel,Flow.Publisher<DataChunk>>
ContentWriters. byteChannelWriter()
Returns a writer function forReadableByteChannel
.static Function<ReadableByteChannel,Flow.Publisher<DataChunk>>
ContentWriters. byteChannelWriter(RetrySchema retrySchema)
Returns a writer function forReadableByteChannel
.static Function<CharBuffer,Flow.Publisher<DataChunk>>
ContentWriters. charBufferWriter(Charset charset)
Returns a writer function forCharBuffer
using provided standardcharset
.static Function<CharSequence,Flow.Publisher<DataChunk>>
ContentWriters. charSequenceWriter(Charset charset)
Returns a writer function forCharSequence
using provided standardcharset
.static Single<DataChunk>
ContentWriters. writeBytes(byte[] bytes, boolean copy)
static Single<DataChunk>
ContentWriters. writeCharBuffer(CharBuffer buffer, Charset charset)
static Single<DataChunk>
ContentWriters. writeCharSequence(CharSequence cs, Charset charset)
Method parameters in io.helidon.media.common with type arguments of type DataChunk Modifier and Type Method Description static Single<byte[]>
ContentReaders. readBytes(Flow.Publisher<DataChunk> chunks)
Collect theDataChunk
of the given publisher into a single byte array.static Single<String>
ContentReaders. readString(Flow.Publisher<DataChunk> chunks, Charset charset)
static Single<String>
ContentReaders. readURLEncodedString(Flow.Publisher<DataChunk> chunks, Charset charset)
void
ReadableByteChannelPublisher. subscribe(Flow.Subscriber<? super DataChunk> subscriberParam)
Constructor parameters in io.helidon.media.common with type arguments of type DataChunk Constructor Description DataChunkInputStream(Flow.Publisher<DataChunk> originalPublisher)
Stores publisher for later subscription. -
Uses of DataChunk in io.helidon.media.jackson.common
Methods in io.helidon.media.jackson.common that return types with arguments of type DataChunk Modifier and Type Method Description static Function<Object,Flow.Publisher<DataChunk>>
JacksonProcessing. writer(ObjectMapper objectMapper, Charset charset)
Returns a function (writer) convertingObject
s toPublisher
s ofDataChunk
s by using the suppliedObjectMapper
. -
Uses of DataChunk in io.helidon.media.jsonb.common
Methods in io.helidon.media.jsonb.common that return types with arguments of type DataChunk Modifier and Type Method Description static Function<Object,Flow.Publisher<DataChunk>>
JsonBinding. writer(Jsonb jsonb, Charset charset)
-
Uses of DataChunk in io.helidon.media.jsonp.common
Methods in io.helidon.media.jsonp.common that return types with arguments of type DataChunk Modifier and Type Method Description Function<JsonStructure,Flow.Publisher<DataChunk>>
JsonProcessing. writer()
Function<JsonStructure,Flow.Publisher<DataChunk>>
JsonProcessing. writer(Charset charset)
-
Uses of DataChunk in io.helidon.media.jsonp.server
Methods in io.helidon.media.jsonp.server that return types with arguments of type DataChunk Modifier and Type Method Description Function<JsonStructure,Flow.Publisher<DataChunk>>
JsonSupport. writer()
Function<JsonStructure,Flow.Publisher<DataChunk>>
JsonSupport. writer(Charset charset)
-
Uses of DataChunk in io.helidon.webserver
Methods in io.helidon.webserver that return types with arguments of type DataChunk Modifier and Type Method Description Flow.Publisher<DataChunk>
BareRequest. bodyPublisher()
Gets the Flow Publisher that allows a subscription for request body chunks.Methods in io.helidon.webserver with parameters of type DataChunk Modifier and Type Method Description void
BareResponse. onNext(DataChunk data)
ProvidedByteBuffer
MUST be fully read during the method call.Method parameters in io.helidon.webserver with type arguments of type DataChunk Modifier and Type Method Description ServerResponse
ServerResponse. registerFilter(Function<Flow.Publisher<DataChunk>,Flow.Publisher<DataChunk>> function)
Registers a provider of the new response content publisher - typically a filter.ServerResponse
ServerResponse. registerFilter(Function<Flow.Publisher<DataChunk>,Flow.Publisher<DataChunk>> function)
Registers a provider of the new response content publisher - typically a filter.<T> ServerResponse
ServerResponse. registerWriter(Class<T> type, MediaType contentType, Function<? extends T,Flow.Publisher<DataChunk>> function)
Registers a content writer for a given type and media type.<T> ServerResponse
ServerResponse. registerWriter(Class<T> type, Function<T,Flow.Publisher<DataChunk>> function)
Registers a content writer for a given type.<T> ServerResponse
ServerResponse. registerWriter(Predicate<?> accept, MediaType contentType, Function<T,Flow.Publisher<DataChunk>> function)
Registers a content writer for all accepted contents.<T> ServerResponse
ServerResponse. registerWriter(Predicate<?> accept, Function<T,Flow.Publisher<DataChunk>> function)
Registers a content writer for all accepted contents.CompletionStage<ServerResponse>
ServerResponse. send(Flow.Publisher<DataChunk> content)
Send a message as is without any other marshalling.
-