INNER CODE UNIT · Java

GatewayResponse

humank/ddd-practitioners-ref · sources/coffeeshop/inventory-sls/src/main/java/helloworld/GatewayResponse.java:10

public class GatewayResponse {

    private final String body;
    private final Map<String, String> headers;
    private final int statusCode;

    public GatewayResponse(final String body, final Map<String, String> headers, final int statusCode) {
        this.statusCode = statusCode;
        this.body = body;
        this.headers = Collections.unmodifiableMap(new HashMap<>(headers));
    }

    public String getBody() {
        return body;
    }

    public Map<String, String> getHeaders() {
        return headers;

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…