public class ServiceResponse
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
int |
httpCode |
java.lang.String |
mimeType |
byte[] |
responseBody |
Constructor and Description |
---|
ServiceResponse(int httpCode,
java.lang.String mimeType,
byte[] responseBody) |
Modifier and Type | Method and Description |
---|---|
static ServiceResponse |
okHtml(byte[] responseBody) |
static ServiceResponse |
okJson(byte[] responseBody) |
static ServiceResponse |
okText(byte[] responseBody) |
public final int httpCode
public final java.lang.String mimeType
public final byte[] responseBody
public ServiceResponse(int httpCode, java.lang.String mimeType, byte[] responseBody)
public static ServiceResponse okJson(byte[] responseBody)
public static ServiceResponse okText(byte[] responseBody)
public static ServiceResponse okHtml(byte[] responseBody)