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

com.plaid.client.http.HttpResponseWrapper Maven / Gradle / Ivy

There is a newer version: 29.0.0
Show newest version
package com.plaid.client.http;


public class HttpResponseWrapper {

    private int httpStatusCode;
    private T responseBody;

    public static  HttpResponseWrapper create(int httpStatusCode, T responseBody) {
        HttpResponseWrapper wrapper = new HttpResponseWrapper();
        
        wrapper.setHttpStatusCode(httpStatusCode);
        wrapper.setResponseBody(responseBody);
        
        return wrapper;
    }
    
    public int getHttpStatusCode() {
        return httpStatusCode;
    }
    
    public void setHttpStatusCode(int httpStatusCode) {
        this.httpStatusCode = httpStatusCode;
    }
    
    public void setResponseBody(T responseBody) {
        this.responseBody = responseBody;
    }
   
    public T getResponseBody() {
        return responseBody;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy