Uses of Interface
io.helidon.webserver.ServerResponse
-
-
Uses of ServerResponse in io.helidon.webserver
Methods in io.helidon.webserver that return ServerResponse Modifier and Type Method Description ServerResponseServerResponse. registerFilter(Function<Flow.Publisher<DataChunk>,Flow.Publisher<DataChunk>> function)Registers a provider of the new response content publisher - typically a filter.<T> ServerResponseServerResponse. 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> ServerResponseServerResponse. registerWriter(Class<T> type, Function<T,Flow.Publisher<DataChunk>> function)Registers a content writer for a given type.<T> ServerResponseServerResponse. registerWriter(Predicate<?> accept, MediaType contentType, Function<T,Flow.Publisher<DataChunk>> function)Registers a content writer for all accepted contents.<T> ServerResponseServerResponse. registerWriter(Predicate<?> accept, Function<T,Flow.Publisher<DataChunk>> function)Registers a content writer for all accepted contents.default ServerResponseServerResponse. status(int statusCode)Sets new HTTP status code.ServerResponseServerResponse. status(Http.ResponseStatus status)Sets new HTTP status.Methods in io.helidon.webserver that return types with arguments of type ServerResponse Modifier and Type Method Description CompletionStage<ServerResponse>ServerResponse. send()Sends an empty response.CompletionStage<ServerResponse>ServerResponse. send(Flow.Publisher<DataChunk> content)Send a message as is without any other marshalling.<T> CompletionStage<ServerResponse>ServerResponse. send(T content)Send a message and close the response.CompletionStage<ServerResponse>ServerResponse. whenSent()Completion stage is completed when response is completed.Methods in io.helidon.webserver with parameters of type ServerResponse Modifier and Type Method Description voidErrorHandler. accept(ServerRequest req, ServerResponse res, T ex)Error handling consumer.voidHandler. accept(ServerRequest req, ServerResponse res)voidHandler.EntityHandler. accept(ServerRequest req, ServerResponse res, T entity)voidRequestPredicate.ConditionalHandler. accept(ServerRequest req, ServerResponse res)protected booleanJsonService. acceptsJson(ServerRequest request, ServerResponse response)Determines if JSON is an accepted response type, usingAcceptand responseContent-Typeheaders.
-