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 DataChunkDataChunk. create(boolean flush, ByteBuffer data)Creates a reusable data chunk.static DataChunkDataChunk. create(boolean flush, ByteBuffer data, boolean readOnly)Creates a reusable data chunk.static DataChunkDataChunk. create(boolean flush, ByteBuffer data, Runnable releaseCallback)Creates a reusable data chunk.static DataChunkDataChunk. create(boolean flush, ByteBuffer data, Runnable releaseCallback, boolean readOnly)Creates a reusable data chunk.static DataChunkDataChunk. create(byte[] bytes)Creates a simple byte array backed data chunk.static DataChunkDataChunk. create(ByteBuffer byteBuffer)Creates a simpleByteBufferbacked data chunk.default DataChunkDataChunk. 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.voidContent. registerFilter(Function<Flow.Publisher<DataChunk>,Flow.Publisher<DataChunk>> function)Registers a filter that allows a control of the original publisher.voidContent. registerFilter(Function<Flow.Publisher<DataChunk>,Flow.Publisher<DataChunk>> function)Registers a filter that allows a control of the original publisher.voidContent. 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 forCharBufferusing provided standardcharset.static Function<CharSequence,Flow.Publisher<DataChunk>>ContentWriters. charSequenceWriter(Charset charset)Returns a writer function forCharSequenceusing 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 theDataChunkof 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)voidReadableByteChannelPublisher. 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) convertingObjects toPublishers ofDataChunks 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 voidBareResponse. onNext(DataChunk data)ProvidedByteBufferMUST be fully read during the method call.Method parameters in io.helidon.webserver with type arguments of type DataChunk Modifier and Type Method Description ServerResponseServerResponse. registerFilter(Function<Flow.Publisher<DataChunk>,Flow.Publisher<DataChunk>> function)Registers a provider of the new response content publisher - typically a filter.ServerResponseServerResponse. registerFilter(Function<Flow.Publisher<DataChunk>,Flow.Publisher<DataChunk>> function)Registers a provider of the new response content publisher - typically a filter.<T> ServerResponseServerResponse. 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> ServerResponseServerResponse. registerWriter(Class<T> type, Function<T,Flow.Publisher<DataChunk>> function)Registers a content writer for a given type.<T> ServerResponseServerResponse. registerWriter(Predicate<?> accept, MediaType contentType, Function<T,Flow.Publisher<DataChunk>> function)Registers a content writer for all accepted contents.<T> ServerResponseServerResponse. 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.
-