public class Result
extends java.lang.Object
Constructor and Description |
---|
Result(boolean status,
java.lang.String errorMessage,
java.lang.String contentType,
byte[] contentBody)
Construct instance.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getContentBody()
Get content body.
|
java.lang.String |
getContentType()
Get content type aka MIME type.
|
java.lang.String |
getErrorMessage()
Get error message.
|
boolean |
isStatus()
Get status code.
|
public Result(boolean status, java.lang.String errorMessage, java.lang.String contentType, byte[] contentBody)
status
- status codeerrorMessage
- error messagecontentType
- content type aka MIME typecontentBody
- content bodypublic boolean isStatus()
public java.lang.String getErrorMessage()
public java.lang.String getContentType()
public byte[] getContentBody()