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

com.bitpay.sdk.client.HttpResponse Maven / Gradle / Ivy

Go to download

Full implementation of the BitPay Payment Gateway. This library implements BitPay's Cryptographically Secure RESTful API.

The newest version!
/*
 * Copyright (c) 2019 BitPay.
 * All rights reserved.
 */

package com.bitpay.sdk.client;

import java.util.Map;

public class HttpResponse {

    private final Integer code;
    private final String body;
    private final Map headers;
    private final String locale;
    private final String httpVersion;

    public HttpResponse(
        Integer code,
        String body,
        Map headers,
        String locale,
        String httpVersion
    ) {
        this.code = code;
        this.body = body;
        this.headers = headers;
        this.locale = locale;
        this.httpVersion = httpVersion;
    }

    public Integer getCode() {
        return this.code;
    }

    public String getBody() {
        return this.body;
    }

    public Map getHeaders() {
        return this.headers;
    }

    public String getLocale() {
        return this.locale;
    }

    public String getHttpVersion() {
        return this.httpVersion;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy