All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jboss.resteasy.reactive.server.spi.ServerHttpResponse Maven / Gradle / Ivy

There is a newer version: 3.17.5
Show newest version
package org.jboss.resteasy.reactive.server.spi;

import java.io.OutputStream;
import java.util.Map;
import java.util.concurrent.CompletionStage;
import java.util.function.Consumer;

import org.jboss.resteasy.reactive.server.core.ResteasyReactiveRequestContext;

public interface ServerHttpResponse extends StreamingResponse {

    ServerHttpResponse setStatusCode(int code);

    ServerHttpResponse end();

    boolean headWritten();

    ServerHttpResponse end(byte[] data);

    ServerHttpResponse end(String data);

    ServerHttpResponse addResponseHeader(CharSequence name, CharSequence value);

    ServerHttpResponse setResponseHeader(CharSequence name, CharSequence value);

    ServerHttpResponse setResponseHeader(CharSequence name, Iterable values);

    Iterable> getAllResponseHeaders();

    String getResponseHeader(String name);

    void removeResponseHeader(String name);

    boolean closed();

    ServerHttpResponse setChunked(boolean chunked);

    ServerHttpResponse write(byte[] data, Consumer asyncResultHandler);

    CompletionStage write(byte[] data);

    ServerHttpResponse sendFile(String path, long offset, long length);

    OutputStream createResponseOutputStream();

    void setPreCommitListener(Consumer task);

    ServerHttpResponse addCloseHandler(Runnable onClose);

    boolean isWriteQueueFull();

    ServerHttpResponse addDrainHandler(Runnable onDrain);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy