public abstract class Response extends JSONParsable
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
STATUS_OK |
| Modifier | Constructor and Description |
|---|---|
|
Response() |
protected |
Response(javax.json.JsonObject jsonObject)
JSON Parseable constructor
|
protected |
Response(java.lang.String status) |
| Modifier and Type | Method and Description |
|---|---|
void |
convertToJson(javax.json.JsonObjectBuilder jsonObjectBuilder)
Method that should set the objects property to Json representation.
|
java.lang.String |
getStatus() |
void |
parseJson(javax.json.JsonObject jsonObject)
Method to read all properties from a JsonObject into this value object.
|
void |
setStatus(java.lang.String status) |
add, addB58, addNotRequired, addNotRequiredB58, getBoolean, getBooleanIfSet, getByteArrayFromB58, getByteArrayFromB58IfSet, getByteArrayFromB64, getByteArrayFromB64IfSet, getByteArrayFromHex, getByteArrayFromHexIfSet, getDate, getDateIfSet, getDouble, getDoubleIfSet, getInt, getIntIfSet, getJsonArray, getJsonArrayIfSet, getJsonObject, getJsonObjectIfSet, getLong, getLongIfSet, getString, getStringIfSet, toJson, toJsonAsString, toStringpublic static final java.lang.String STATUS_OK
public Response()
protected Response(java.lang.String status)
protected Response(javax.json.JsonObject jsonObject)
throws javax.json.JsonException
jsonObject - the json object to parsejavax.json.JsonExceptionpublic java.lang.String getStatus()
public void setStatus(java.lang.String status)
status - the status, should generally be OK, used to make it simple to
determine from JSON response that processing was OK.public void convertToJson(javax.json.JsonObjectBuilder jsonObjectBuilder)
throws javax.json.JsonException
convertToJson in class JSONParsablejsonObjectBuilder - the json object build to use to set key/values in jsonjavax.json.JsonException - if problems occurred converting object to JSON.public void parseJson(javax.json.JsonObject jsonObject)
throws javax.json.JsonException
parseJson in class JSONParsablejsonObject - the json object to read key and values from and set object properties.javax.json.JsonException - if problems occurred converting object from JSON.