com.paypal.http.HttpResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of paypalhttp Show documentation
Show all versions of paypalhttp Show documentation
This is Paypal's generic http library for generated SDKs
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;
}
}