public class BaseTransformResponse extends CommandResponse
| Constructor and Description |
|---|
BaseTransformResponse(java.lang.String text,
int statusCode,
java.lang.String contentType,
org.json.simple.JSONObject json,
Command sourceCommand)
Constructs a new CommandResponse, initialized with the provided
response text and status code.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
getSuccess() |
findObject, getContentType, getParsedData, getProperty, getProperty, getRequiredVersion, getSourceCommand, getStatusCode, getTextpublic BaseTransformResponse(java.lang.String text,
int statusCode,
java.lang.String contentType,
org.json.simple.JSONObject json,
Command sourceCommand)
text - The response textstatusCode - The HTTP status codecontentType - The response content typejson - The parsed JSONObject (or null if JSON was not returned).sourceCommand - A copy of the command that created this response