org.jboss.resteasy.reactive.server.spi.ServerHttpResponse Maven / Gradle / Ivy
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