io.quarkus.dev.console.DevConsoleResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of quarkus-development-mode-spi Show documentation
Show all versions of quarkus-development-mode-spi Show documentation
SPI classes for Quarkus Development mode.
package io.quarkus.dev.console;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class DevConsoleResponse {
private int status;
private Map> headers = new HashMap<>();
private byte[] body;
public DevConsoleResponse(int status, Map> headers, byte[] body) {
this.status = status;
this.headers = headers;
this.body = body;
}
public DevConsoleResponse() {
this.status = 200;
this.headers = new HashMap<>();
this.body = new byte[0];
}
public int getStatus() {
return status;
}
public Map> getHeaders() {
return headers;
}
public byte[] getBody() {
return body;
}
public DevConsoleResponse setStatus(int status) {
this.status = status;
return this;
}
public DevConsoleResponse setHeaders(Map> headers) {
this.headers = headers;
return this;
}
public DevConsoleResponse setBody(byte[] body) {
this.body = body;
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy