public abstract class RowsResponse extends CommandResponse
| Modifier | Constructor and Description |
|---|---|
protected |
RowsResponse(java.lang.String text,
int statusCode,
java.lang.String contentType,
org.json.simple.JSONObject json,
Command sourceCommand)
Constructs a new RowsResponse given the specified text and status code.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
caseInsensitizeRowMaps() |
protected void |
fixupParsedData()
Fixes up the parsed data.
|
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> |
getRows()
Returns the list of rows from the parsed response data.
|
findObject, getContentType, getParsedData, getProperty, getProperty, getRequiredVersion, getSourceCommand, getStatusCode, getTextprotected RowsResponse(java.lang.String text,
int statusCode,
java.lang.String contentType,
org.json.simple.JSONObject json,
Command sourceCommand)
text - The response text.statusCode - The HTTP status code.contentType - the Content-Type header value.json - The parsed JSONObject (or null if JSON was not returned.sourceCommand - The source command objectpublic java.util.List<java.util.Map<java.lang.String,java.lang.Object>> getRows()
for (Map<String,Object> row : response.getRows())
{
Number key = (Number)row.get("Key");
// use Number.intValue(), doubleValue(), longValue(), etc to get various primitive types
}
protected void fixupParsedData()
protected void caseInsensitizeRowMaps()