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

io.quarkus.dev.console.DevConsoleResponse Maven / Gradle / Ivy

There is a newer version: 3.17.0
Show newest version
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