|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.factual.driver.Response
public abstract class Response
Represents the basic concept of a response from Factual.
| Field Summary | |
|---|---|
static int |
UNDEFINED
|
| Constructor Summary | |
|---|---|
Response()
|
|
| Method Summary | |
|---|---|
int |
getIncludedRowCount()
|
abstract String |
getJson()
Subclasses of Response must provide access to the original JSON representation of Factual's response. |
String |
getStatus()
The status returned by the Factual API server, e.g. |
int |
getTotalRowCount()
|
String |
getVersion()
The version tag returned by the Factual API server, e.g. |
boolean |
isEmpty()
|
String |
toString()
|
static void |
withMeta(Response resp,
org.json.JSONObject rootJsonObj)
Parses response metadata from rootJsonObj and adds it to response |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int UNDEFINED
| Constructor Detail |
|---|
public Response()
| Method Detail |
|---|
public String getStatus()
public String getVersion()
public int getTotalRowCount()
UNDEFINED if unknown.public int getIncludedRowCount()
public boolean isEmpty()
public static void withMeta(Response resp,
org.json.JSONObject rootJsonObj)
response - the response object to which to add metadata.rootJsonObj - the top-level JSON response Object built from a Factual response.public String toString()
toString in class Objectpublic abstract String getJson()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||