public class DataSiftResult extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
error |
protected Response |
response |
| Constructor and Description |
|---|
DataSiftResult() |
| Modifier and Type | Method and Description |
|---|---|
void |
failed(Throwable e) |
Throwable |
failureCause() |
String |
getError() |
Response |
getResponse() |
boolean |
isAuthorizationSuccesful() |
boolean |
isSuccessful()
A response is considered successful if if a response has been received, the response doesn't contain an error
message AND the HTTP response status code is 200 to 399 (i.e.
|
int |
rateLimit() |
int |
rateLimitCost()
Not all API calls are created equally.
|
int |
rateLimitRemaining() |
void |
setResponse(Response response) |
void |
successful() |
String |
toString() |
public boolean isSuccessful()
public Response getResponse()
public void setResponse(Response response)
public Throwable failureCause()
public boolean isAuthorizationSuccesful()
public int rateLimit()
DataSiftClient.DEFAULT_NUM if the information
was not returnedpublic int rateLimitRemaining()
DataSiftClient.DEFAULT_NUM if the information was not returnedpublic int rateLimitCost()
DataSiftClient.DEFAULT_NUM if the information was not returnedpublic String getError()
isSuccessful() == false then this returns the error message DataSift returned or null if truepublic void failed(Throwable e)
public void successful()
Copyright © 2014. All Rights Reserved.