
com.github.davidmoten.odata.client.HttpResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of odata-client-runtime Show documentation
Show all versions of odata-client-runtime Show documentation
OData client runtime for use with generated code
The newest version!
package com.github.davidmoten.odata.client;
import java.nio.charset.StandardCharsets;
public class HttpResponse {
private final int responseCode;
private final byte[] bytes;
public HttpResponse(int responseCode, byte[] bytes) {
this.responseCode = responseCode;
this.bytes = bytes;
}
public String getText() {
if (bytes == null) {
return null;
} else {
return new String(bytes, StandardCharsets.UTF_8);
}
}
public int getResponseCode() {
return responseCode;
}
public byte[] getBytes() {
return bytes;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy