org.redmine.ta.internal.comm.BasicHttpResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of redmine-java-api Show documentation
Show all versions of redmine-java-api Show documentation
Free open-source Java API for Redmine and Chiliproject bug/task management systems.
package org.redmine.ta.internal.comm;
import java.io.InputStream;
/**
* Basic http entity. Just an iternal implementation to use with proper
* wrappers, etc...
*
* @author maxkar
*
*/
public final class BasicHttpResponse {
private final int responseCode;
private final InputStream stream;
private final String charset;
public BasicHttpResponse(int responseCode, InputStream stream,
String charset) {
super();
this.responseCode = responseCode;
this.stream = stream;
this.charset = charset;
}
public int getResponseCode() {
return responseCode;
}
public InputStream getStream() {
return stream;
}
public String getCharset() {
return charset;
}
}