| Package | Description |
|---|---|
| io.helidon.webserver |
Reactive web server API.
|
| Modifier and Type | Method and 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 and 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 and 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–2019 Oracle Corporation. All rights reserved.