| Package | Description |
|---|---|
| io.helidon.common.http |
HTTP APIs and implementations usable by both server and client side of the HTTP story.
|
| io.helidon.webserver |
Reactive web server API.
|
| io.helidon.webserver.json | |
| io.helidon.webserver.spi |
WebServer SPI.
|
| Modifier and Type | Method | Description |
|---|---|---|
static DataChunk |
DataChunk.create(boolean flush,
java.nio.ByteBuffer data) |
Creates a reusable data chunk.
|
static DataChunk |
DataChunk.create(boolean flush,
java.nio.ByteBuffer data,
java.lang.Runnable releaseCallback) |
Creates a reusable data chunk.
|
static DataChunk |
DataChunk.create(byte[] bytes) |
Creates a simple byte array backed data chunk.
|
static DataChunk |
DataChunk.create(java.nio.ByteBuffer byteBuffer) |
Creates a simple
ByteBuffer backed data chunk. |
| Modifier and Type | Method | Description |
|---|---|---|
default java.util.concurrent.CompletionStage<? extends R> |
Reader.apply(Flow.Publisher<DataChunk> publisher) |
Transforms a publisher into a completion stage.
|
java.util.concurrent.CompletionStage<? extends R> |
Reader.apply(Flow.Publisher<DataChunk> publisher,
java.lang.Class<? super R> clazz) |
Transforms a publisher into a completion stage.
|
default <T extends R> |
Reader.applyAndCast(Flow.Publisher<DataChunk> publisher,
java.lang.Class<T> type) |
Transforms a publisher into a completion stage.
|
void |
Content.registerFilter(java.util.function.Function<Flow.Publisher<DataChunk>,Flow.Publisher<DataChunk>> function) |
Registers a filter that allows a control of the original publisher.
|
void |
Content.registerFilter(java.util.function.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.
|
| Modifier and Type | Method | Description |
|---|---|---|
static java.util.function.Function<byte[],Flow.Publisher<DataChunk>> |
ContentWriters.byteArrayWriter(boolean copy) |
Returns a writer function for
byte[]. |
static java.util.function.Function<java.nio.channels.ReadableByteChannel,Flow.Publisher<DataChunk>> |
ContentWriters.byteChannelWriter() |
Returns a writer function for
ReadableByteChannel. |
static java.util.function.Function<java.nio.channels.ReadableByteChannel,Flow.Publisher<DataChunk>> |
ContentWriters.byteChannelWriter(RetrySchema retrySchema) |
Returns a writer function for
ReadableByteChannel. |
static java.util.function.Function<java.lang.CharSequence,Flow.Publisher<DataChunk>> |
ContentWriters.charSequenceWriter(java.nio.charset.Charset charset) |
Returns a writer function for
CharSequence using provided standard charset. |
| Modifier and Type | Method | Description |
|---|---|---|
java.util.concurrent.CompletionStage<java.lang.String> |
StringContentReader.apply(Flow.Publisher<DataChunk> publisher,
java.lang.Class<? super java.lang.String> clazz) |
Converts a
ByteBuffer publisher to a single string while using the associated
charset. |
ServerResponse |
ServerResponse.registerFilter(java.util.function.Function<Flow.Publisher<DataChunk>,Flow.Publisher<DataChunk>> function) |
Registers a provider of the new response content publisher - typically a filter.
|
ServerResponse |
ServerResponse.registerFilter(java.util.function.Function<Flow.Publisher<DataChunk>,Flow.Publisher<DataChunk>> function) |
Registers a provider of the new response content publisher - typically a filter.
|
<T> ServerResponse |
ServerResponse.registerWriter(java.lang.Class<T> type,
MediaType contentType,
java.util.function.Function<? extends T,Flow.Publisher<DataChunk>> function) |
Registers a content writer for a given type and media type.
|
<T> ServerResponse |
ServerResponse.registerWriter(java.lang.Class<T> type,
java.util.function.Function<T,Flow.Publisher<DataChunk>> function) |
Registers a content writer for a given type.
|
<T> ServerResponse |
ServerResponse.registerWriter(java.util.function.Predicate<?> accept,
MediaType contentType,
java.util.function.Function<T,Flow.Publisher<DataChunk>> function) |
Registers a content writer for all accepted contents.
|
<T> ServerResponse |
ServerResponse.registerWriter(java.util.function.Predicate<?> accept,
java.util.function.Function<T,Flow.Publisher<DataChunk>> function) |
Registers a content writer for all accepted contents.
|
java.util.concurrent.CompletionStage<ServerResponse> |
ServerResponse.send(Flow.Publisher<DataChunk> content) |
Send a message as is without any other marshalling.
|
void |
PublisherInputStream.subscribe(Flow.Subscriber<? super DataChunk> subscriber) |
|
void |
ReadableByteChannelPublisher.subscribe(Flow.Subscriber<? super DataChunk> subscriberParam) |
| Constructor | Description |
|---|---|
PublisherInputStream(Flow.Publisher<DataChunk> originalPublisher) |
Wraps the supplied publisher and adds a blocking
InputStream based nature. |
| Modifier and Type | Method | Description |
|---|---|---|
java.util.function.Function<javax.json.JsonStructure,Flow.Publisher<DataChunk>> |
JsonSupport.writer() |
|
java.util.function.Function<javax.json.JsonStructure,Flow.Publisher<DataChunk>> |
JsonSupport.writer(java.nio.charset.Charset charset) |
| Modifier and Type | Method | Description |
|---|---|---|
Flow.Publisher<DataChunk> |
BareRequest.bodyPublisher() |
Gets the Flow Publisher that allows a subscription for request body chunks.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
BareResponse.onNext(DataChunk data) |
Provided
ByteBuffer MUST be fully read during the method call. |
Copyright © 2018, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.