com.braintreepayments.http.HttpResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of braintreehttp Show documentation
Show all versions of braintreehttp Show documentation
This is Braintree's generic http library for generated SDKs
package com.braintreepayments.http;
public class HttpResponse {
private final Headers headers;
private final int statusCode;
private final T result;
protected HttpResponse(Headers headers, int statusCode, T result) {
this.headers = headers;
this.statusCode = statusCode;
this.result = result;
}
public Headers headers() {
if (headers == null) {
return new Headers();
}
return headers;
}
public int statusCode() {
return statusCode;
}
public T result() {
return result;
}
}