| Package | Description |
|---|---|
| io.helidon.security.webserver |
Integration library for RxServer.
|
| io.helidon.webserver |
Reactive web server API.
|
| io.helidon.webserver.json |
| Modifier and Type | Method | Description |
|---|---|---|
void |
SecurityHandler.accept(ServerRequest req,
ServerResponse res) |
| Modifier and Type | Method | Description |
|---|---|---|
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.
|
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(Flow.Publisher<DataChunk> 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) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
JsonSupport.accept(ServerRequest request,
ServerResponse response) |
It registers reader and writer for
JsonSupport on ServerRequest/ServerResponse on provided
routing criteria. |
Copyright © 2018, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.