com.bitpay.sdk.client.HttpResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bitpay_sdk Show documentation
Show all versions of bitpay_sdk Show documentation
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;
}
}