com.bandwidth.iris.sdk.IrisResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bandwidth-java-iris-sdk Show documentation
Show all versions of bandwidth-java-iris-sdk Show documentation
Java SDK for use with the IRIS API.
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);
}
}