Uses of Interface
io.helidon.webserver.ServerResponse
Package
Description
API and minimal implementation for metrics support service.
Helidon SE OpenAPI Support.
Integration library for RxServer.
Reactive web server API.
Access log support for Helidon WebServer.
Helidon SE CORS Support
-
Uses of ServerResponse in io.helidon.metrics.serviceapi
Modifier and TypeMethodDescriptionvoid
PostRequestMetricsSupport.runTasks
(ServerRequest request, ServerResponse response, Throwable throwable) Run the post-processing tasks.Modifier and TypeMethodDescriptionstatic void
PostRequestMetricsSupport.recordPostProcessingWork
(ServerRequest request, BiConsumer<ServerResponse, Throwable> task) Records a post-processing task to be performed once the response has been sent to the client.void
PostRequestMetricsSupport.registerPostRequestWork
(BiConsumer<ServerResponse, Throwable> task) Records post-request processing to be performed once the server sends the response to the client. -
Uses of ServerResponse in io.helidon.openapi
Modifier and TypeMethodDescriptionboolean
OpenApiUi.prepareTextResponseFromMainEndpoint
(ServerRequest request, ServerResponse response) Gives the UI an opportunity to respond to a request arriving at theOpenAPISupport
endpoint for which the best-acceptedMediaType
wastext/html
.protected boolean
OpenApiUiBase.sendStaticText
(ServerRequest request, ServerResponse response, MediaType mediaType) Sends a static text response of the given media type. -
Uses of ServerResponse in io.helidon.security.integration.webserver
Modifier and TypeMethodDescriptionvoid
SecurityHandler.accept
(ServerRequest req, ServerResponse res) -
Uses of ServerResponse in io.helidon.webserver
Modifier and TypeMethodDescriptiondefault ServerResponse
Adds header values for a specified name.default ServerResponse
Adds header values for a specified name.default ServerResponse
ServerResponse.addHeaders
(Parameters parameters) Copies all of the mappings from the specifiedparameters
to this response headers instance.default ServerResponse
ServerResponse.cachingStrategy
(ServerResponse.CachingStrategy cachingStrategy) Sets theCache-Control
header values according to the specified strategy.ServerResponse.registerFilter
(MessageBodyFilter filter) ServerResponse.registerFilter
(Function<Flow.Publisher<DataChunk>, Flow.Publisher<DataChunk>> function) Deprecated.ServerResponse.registerWriter
(MessageBodyStreamWriter<?> writer) ServerResponse.registerWriter
(MessageBodyWriter<?> writer) <T> ServerResponse
ServerResponse.registerWriter
(Class<T> type, MediaType contentType, Function<? extends T, Flow.Publisher<DataChunk>> function) Deprecated.since 2.0.0, useregisterWriter(io.helidon.media.common.MessageBodyWriter)
instead<T> ServerResponse
ServerResponse.registerWriter
(Class<T> type, Function<T, Flow.Publisher<DataChunk>> function) Deprecated.Since 2.0.0, useregisterWriter(io.helidon.media.common.MessageBodyWriter)
instead<T> ServerResponse
ServerResponse.registerWriter
(Predicate<?> accept, MediaType contentType, Function<T, Flow.Publisher<DataChunk>> function) Deprecated.since 2.0.0, useregisterWriter(io.helidon.media.common.MessageBodyWriter)
instead<T> ServerResponse
ServerResponse.registerWriter
(Predicate<?> accept, Function<T, Flow.Publisher<DataChunk>> function) Deprecated.since 2.0.0, useregisterWriter(io.helidon.media.common.MessageBodyWriter)
insteaddefault ServerResponse
ServerResponse.status
(int statusCode) Sets new HTTP status code.ServerResponse.status
(Http.ResponseStatus status) Sets new HTTP status.Modifier and TypeMethodDescriptionServerResponse.send()
Sends an empty response.ServerResponse.send
(Flow.Publisher<DataChunk> content) Send a message as is without any other marshalling, registered filters are applied.ServerResponse.send
(Flow.Publisher<DataChunk> content, boolean applyFilters) Send a message as is without any other marshalling.<T> Single<ServerResponse>
ServerResponse.send
(Flow.Publisher<T> content, Class<T> clazz) Send a message with the given entity stream as content and close the response.ServerResponse.send
(Function<MessageBodyWriterContext, Flow.Publisher<DataChunk>> function) Send a message using the given marshalling function.<T> Single<ServerResponse>
ServerResponse.send
(T content) Send a message and close the response.ServerResponse.whenSent()
Completion stage is completed when response is completed.Modifier and TypeMethodDescriptionvoid
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) protected boolean
JsonService.acceptsJson
(ServerRequest request, ServerResponse response) Determines if JSON is an accepted response type, usingAccept
and responseContent-Type
headers. -
Uses of ServerResponse in io.helidon.webserver.accesslog
Modifier and TypeMethodDescriptionAccessLogContext.serverResponse()
The server response, after data was sent.Modifier and TypeMethodDescriptiondefault void
AccessLogEntry.accept
(ServerRequest req, ServerResponse res) This method allows for each log entry to register anything on the request and/or response.void
SizeLogEntry.accept
(ServerRequest req, ServerResponse res) -
Uses of ServerResponse in io.helidon.webserver.cors
Modifier and TypeMethodDescriptionvoid
CorsSupport.accept
(ServerRequest request, ServerResponse response)
registerFilter(io.helidon.media.common.MessageBodyFilter)
instead