| Package | Description |
|---|---|
| io.helidon.webserver |
Reactive web server API.
|
| Modifier and Type | Method | Description |
|---|---|---|
ServerResponse |
ServerResponse.registerFilter(java.util.function.Function<io.helidon.common.reactive.Flow.Publisher<ResponseChunk>,io.helidon.common.reactive.Flow.Publisher<ResponseChunk>> 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,io.helidon.common.reactive.Flow.Publisher<ResponseChunk>> 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,io.helidon.common.reactive.Flow.Publisher<ResponseChunk>> 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,io.helidon.common.reactive.Flow.Publisher<ResponseChunk>> function) |
Registers a content writer for all accepted contents.
|
<T> ServerResponse |
ServerResponse.registerWriter(java.util.function.Predicate<?> accept,
java.util.function.Function<T,io.helidon.common.reactive.Flow.Publisher<ResponseChunk>> function) |
Registers a content writer for all accepted contents.
|
default ServerResponse |
ServerResponse.status(int statusCode) |
Sets new HTTP status code.
|
ServerResponse |
ServerResponse.status(Http.ResponseStatus status) |
Sets new HTTP status.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.util.concurrent.CompletionStage<ServerResponse> |
ServerResponse.send() |
Sends an empty response.
|
java.util.concurrent.CompletionStage<ServerResponse> |
ServerResponse.send(io.helidon.common.reactive.Flow.Publisher<ResponseChunk> content) |
Send a message as is without any other marshalling.
|
<T> java.util.concurrent.CompletionStage<ServerResponse> |
ServerResponse.send(T content) |
Send a message and close the response.
|
java.util.concurrent.CompletionStage<ServerResponse> |
ServerResponse.whenSent() |
Completion stage is completed when response is completed.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
ErrorHandler.accept(ServerRequest req,
ServerResponse res,
T ex) |
Error handling consumer.
|
void |
Handler.accept(ServerRequest req,
ServerResponse res) |
|
void |
Handler.EntityHandler.accept(ServerRequest req,
ServerResponse res,
T entity) |
|
void |
RequestPredicate.ConditionalHandler.accept(ServerRequest req,
ServerResponse res) |
Copyright © 2018 Oracle Corporation. All rights reserved.