public interface RemoteDataResult extends AsyncResponse
Modifier and Type | Method and Description |
---|---|
net.sf.json.JSON |
getResponseJson()
If the call has finished successfully then return the
body of the response as parsed JSON.
|
DBRows |
getResponseRows()
If the call has finished successfully then return the
body of the response as parsed JSON.
|
java.lang.String |
getResponseText()
If the call has finished successfully then return the
body of the response as plain text.
|
groovy.util.Node |
getResponseXml()
If the call has finished successfully then return the
body of the response as parsed XML.
|
boolean |
isCompleted()
Returns true if the call is finished, regardless of
whether it was successful or not.
|
void |
sleepUntilCompleted()
Pauses the thread until the call is finished, regardless
of whether it was successful or not.
|
void sleepUntilCompleted() throws java.lang.Exception
sleepUntilCompleted
in interface AsyncResponse
java.lang.Exception
- if the remote call failed.boolean isCompleted() throws java.lang.Exception
isCompleted
in interface AsyncResponse
java.lang.Exception
- if the remote call failed.java.lang.String getResponseText() throws java.lang.Exception
java.lang.Exception
- if the remote call failed.groovy.util.Node getResponseXml() throws java.lang.Exception
java.lang.Exception
- if the remote call failed.net.sf.json.JSON getResponseJson() throws java.lang.Exception
java.lang.Exception
- if the remote call failed.DBRows getResponseRows() throws java.lang.Exception
java.lang.Exception
- if the remote call failed.