public class JSONResponse
extends com.ibm.json.java.JSONObject
| Constructor and Description |
|---|
JSONResponse() |
| Modifier and Type | Method and Description |
|---|---|
void |
addErrorMessage(JSONMessage message)
Adds an error message JSON to the response JSON.
|
void |
addInfoMessage(JSONMessage message)
Adds an information message JSON to the response JSON.
|
void |
addWarningMessage(JSONMessage message)
Adds a warning message JSON to the response JSON.
|
boolean |
hasErrors()
Determines if the JSONResponse has errors.
|
isValidObject, isValidType, parse, parse, parse, put, serialize, serialize, serialize, serialize, serialize, serialize, toStringclear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuespublic void addErrorMessage(JSONMessage message)
message - The JSON for the error message.public void addWarningMessage(JSONMessage message)
message - The JSON for the warning message.public void addInfoMessage(JSONMessage message)
message - The JSON for the information message.public boolean hasErrors()