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

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

There is a newer version: 2.0.0
Show newest version
package com.paypal.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