| 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 specific
MediaType. |
| io.helidon.media.jsonp.common |
JSON-P media type support.
|
| io.helidon.media.jsonp.server | |
| io.helidon.webserver |
Reactive web server API.
|
| Modifier and Type | Method and Description |
|---|---|
static DataChunk |
DataChunk.create(boolean flush,
ByteBuffer data)
Creates a reusable data chunk.
|
static DataChunk |
DataChunk.create(boolean flush,
ByteBuffer data,
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(ByteBuffer byteBuffer)
Creates a simple
ByteBuffer backed data chunk. |
| Modifier and Type | Method and 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> |
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.
|
| Modifier and Type | Method and Description |
|---|---|
static Function<byte[],Flow.Publisher<DataChunk>> |
ContentWriters.byteArrayWriter(boolean copy)
Returns a writer function for
byte[]. |
static Function<ReadableByteChannel,Flow.Publisher<DataChunk>> |
ContentWriters.byteChannelWriter()
Returns a writer function for
ReadableByteChannel. |
static Function<ReadableByteChannel,Flow.Publisher<DataChunk>> |
ContentWriters.byteChannelWriter(RetrySchema retrySchema)
Returns a writer function for
ReadableByteChannel. |
static Function<CharSequence,Flow.Publisher<DataChunk>> |
ContentWriters.charSequenceWriter(Charset charset)
Returns a writer function for
CharSequence using provided standard charset. |
| Modifier and Type | Method and Description |
|---|---|
void |
PublisherInputStream.subscribe(Flow.Subscriber<? super DataChunk> subscriber) |
void |
ReadableByteChannelPublisher.subscribe(Flow.Subscriber<? super DataChunk> subscriberParam) |
| Constructor and Description |
|---|
PublisherInputStream(Flow.Publisher<DataChunk> originalPublisher)
Wraps the supplied publisher and adds a blocking
InputStream based nature. |
| Modifier and Type | Method and Description |
|---|---|
Function<JsonStructure,Flow.Publisher<DataChunk>> |
JsonProcessing.writer()
|
Function<JsonStructure,Flow.Publisher<DataChunk>> |
JsonProcessing.writer(Charset charset)
|
| Modifier and Type | Method and Description |
|---|---|
Function<JsonStructure,Flow.Publisher<DataChunk>> |
JsonSupport.writer()
|
Function<JsonStructure,Flow.Publisher<DataChunk>> |
JsonSupport.writer(Charset charset)
|
| Modifier and Type | Method and Description |
|---|---|
Flow.Publisher<DataChunk> |
BareRequest.bodyPublisher()
Gets the Flow Publisher that allows a subscription for request body chunks.
|
| Modifier and Type | Method and Description |
|---|---|
void |
BareResponse.onNext(DataChunk data)
Provided
ByteBuffer MUST be fully read during the method call. |
| Modifier and Type | Method and 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.
|
Copyright © 2018, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.