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 default ServerResponseServerResponse. addHeader(String name, Iterable<String> values)Adds header values for a specified name.default ServerResponseServerResponse. addHeader(String name, String... values)Adds header values for a specified name.default ServerResponseServerResponse. addHeaders(Parameters parameters)Copies all of the mappings from the specifiedparametersto this response headers instance.ServerResponseServerResponse. registerFilter(MessageBodyFilter filter)ServerResponseServerResponse. registerFilter(Function<Flow.Publisher<DataChunk>,Flow.Publisher<DataChunk>> function)Deprecated.since 2.0.0, useregisterFilter(io.helidon.media.common.MessageBodyFilter)insteadServerResponseServerResponse. registerWriter(MessageBodyStreamWriter<?> writer)ServerResponseServerResponse. registerWriter(MessageBodyWriter<?> writer)<T> ServerResponseServerResponse. 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> ServerResponseServerResponse. registerWriter(Class<T> type, Function<T,Flow.Publisher<DataChunk>> function)Deprecated.Since 2.0.0, useregisterWriter(io.helidon.media.common.MessageBodyWriter)instead<T> ServerResponseServerResponse. registerWriter(Predicate<?> accept, MediaType contentType, Function<T,Flow.Publisher<DataChunk>> function)Deprecated.since 2.0.0, useregisterWriter(io.helidon.media.common.MessageBodyWriter)instead<T> ServerResponseServerResponse. registerWriter(Predicate<?> accept, Function<T,Flow.Publisher<DataChunk>> function)Deprecated.since 2.0.0, useregisterWriter(io.helidon.media.common.MessageBodyWriter)insteaddefault 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 Single<ServerResponse>ServerResponse. send()Sends an empty response.Single<ServerResponse>ServerResponse. send(Flow.Publisher<DataChunk> content)Send a message as is without any other marshalling, registered filters are applied.Single<ServerResponse>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.Single<ServerResponse>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.Single<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.voidFormParamsSupport. accept(ServerRequest req, ServerResponse res)Deprecated.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.
-