public class RestResponse
extends java.lang.Object
Rest
from an HTTP response.Constructor and Description |
---|
RestResponse(int status,
java.lang.String mimeType,
byte[] body) |
Modifier and Type | Method and Description |
---|---|
byte[] |
getBody() |
java.lang.String |
getMimeType() |
int |
getStatus() |
public RestResponse(int status, java.lang.String mimeType, byte[] body)
status
- The HTTP status code issues for the response (e.g. 200 == OK
).mimeType
- The MIME type for the body contents (e.g. application/json
).body
- The binary payload of the response body.public int getStatus()
200 == OK
).public java.lang.String getMimeType()
application/json
).public byte[] getBody()