public class RemoteHttpDataResult extends java.lang.Object implements RemoteDataResult
Constructor and Description |
---|
RemoteHttpDataResult(java.lang.String sUrl_p,
java.lang.String sMethod_p,
java.util.List<java.lang.String> headers_p,
java.util.Map<java.lang.String,java.lang.String> params_p,
int iTimeout_p) |
RemoteHttpDataResult(java.lang.String sUrl_p,
java.lang.String sMethod_p,
java.util.List<java.lang.String> headers_p,
java.lang.String sRequestBody_p,
java.lang.String sContentType_p,
int iTimeout_p) |
RemoteHttpDataResult(java.lang.String sUrl_p,
java.lang.String sMethod_p,
java.util.Map<java.lang.String,java.lang.String> params_p,
int iTimeout_p) |
RemoteHttpDataResult(java.lang.String sUrl_p,
java.lang.String sMethod_p,
java.lang.String sRequestBody_p,
java.lang.String sContentType_p,
int iTimeout_p) |
Modifier and Type | Method and Description |
---|---|
net.sf.json.JSON |
getResponseJson()
If the HTTP 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 HTTP call has finished successfully then return the
body of the response as plain text.
|
groovy.util.Node |
getResponseXml()
If the HTTP call has finished successfully then return the
body of the response as parsed XML.
|
boolean |
isCompleted()
Returns true if the HTTP call is finished, regardless of
whether it was successful or not.
|
void |
sleepUntilCompleted()
Makes the thread sleep until the HTTP call is finished, regardless
of whether it is successful or not.
|
public RemoteHttpDataResult(java.lang.String sUrl_p, java.lang.String sMethod_p, java.util.Map<java.lang.String,java.lang.String> params_p, int iTimeout_p)
public RemoteHttpDataResult(java.lang.String sUrl_p, java.lang.String sMethod_p, java.lang.String sRequestBody_p, java.lang.String sContentType_p, int iTimeout_p)
public RemoteHttpDataResult(java.lang.String sUrl_p, java.lang.String sMethod_p, java.util.List<java.lang.String> headers_p, java.util.Map<java.lang.String,java.lang.String> params_p, int iTimeout_p)
public RemoteHttpDataResult(java.lang.String sUrl_p, java.lang.String sMethod_p, java.util.List<java.lang.String> headers_p, java.lang.String sRequestBody_p, java.lang.String sContentType_p, int iTimeout_p)
public void sleepUntilCompleted() throws java.lang.Exception
sleepUntilCompleted
in interface AsyncResponse
sleepUntilCompleted
in interface RemoteDataResult
java.lang.Exception
- if the remote call failed.public boolean isCompleted() throws java.lang.Exception
isCompleted
in interface AsyncResponse
isCompleted
in interface RemoteDataResult
java.lang.Exception
- if the remote call failed.public java.lang.String getResponseText() throws java.lang.Exception
getResponseText
in interface RemoteDataResult
java.lang.Exception
- if the remote call failed.public groovy.util.Node getResponseXml() throws java.lang.Exception
getResponseXml
in interface RemoteDataResult
java.lang.Exception
- if the remote call failed.public net.sf.json.JSON getResponseJson() throws java.lang.Exception
getResponseJson
in interface RemoteDataResult
java.lang.Exception
- if the remote call failed.public DBRows getResponseRows() throws java.lang.Exception
RemoteDataResult
getResponseRows
in interface RemoteDataResult
java.lang.Exception
- if the remote call failed.