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

com.braintreepayments.http.HttpResponse Maven / Gradle / Ivy

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy