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

com.bandwidth.iris.sdk.IrisResponse Maven / Gradle / Ivy

There is a newer version: 4.2.0
Show newest version
package com.bandwidth.iris.sdk;

import org.apache.http.HttpStatus;

import java.util.Map;

public class IrisResponse {
    private String responseBody;
    private int statusCode;
    private Map headers;

    public Map getHeaders() {
        return headers;
    }

    public void setHeaders(Map headers) {
        this.headers = headers;
    }

    public String getResponseBody() {
        return responseBody;
    }

    public void setResponseBody(String responseBody) {
        this.responseBody = responseBody;
    }

    public int getStatusCode() {
        return statusCode;
    }

    public void setStatusCode(int statusCode) {
        this.statusCode = statusCode;
    }

    public boolean isOK() {
        return (statusCode == HttpStatus.SC_OK || statusCode == HttpStatus.SC_CREATED);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy