public class RemoteEmailDataResult extends java.lang.Object implements RemoteDataResult
Constructor and Description |
---|
RemoteEmailDataResult(java.util.List<java.lang.String> recipients_p,
java.lang.String sFromAddress_p,
java.lang.String sSubject_p,
java.lang.String sMessage_p,
int iTimeout_p) |
Modifier and Type | Method and Description |
---|---|
net.sf.json.JSONObject |
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 email call is finished, regardless of
whether it was successful or not.
|
void |
sleepUntilCompleted()
Makes the thread sleep until the email call is finished, regardless
of whether it is successful or not.
|
public RemoteEmailDataResult(java.util.List<java.lang.String> recipients_p, java.lang.String sFromAddress_p, java.lang.String sSubject_p, java.lang.String sMessage_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
RemoteDataResult
getResponseText
in interface RemoteDataResult
java.lang.Exception
- if the remote call failed.public groovy.util.Node getResponseXml() throws java.lang.Exception
RemoteDataResult
getResponseXml
in interface RemoteDataResult
java.lang.Exception
- if the remote call failed.public net.sf.json.JSONObject getResponseJson() throws java.lang.Exception
RemoteDataResult
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.