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 AsyncResponsesleepUntilCompleted in interface RemoteDataResultjava.lang.Exception - if the remote call failed.public boolean isCompleted()
throws java.lang.Exception
isCompleted in interface AsyncResponseisCompleted in interface RemoteDataResultjava.lang.Exception - if the remote call failed.public java.lang.String getResponseText()
throws java.lang.Exception
RemoteDataResultgetResponseText in interface RemoteDataResultjava.lang.Exception - if the remote call failed.public groovy.util.Node getResponseXml()
throws java.lang.Exception
RemoteDataResultgetResponseXml in interface RemoteDataResultjava.lang.Exception - if the remote call failed.public net.sf.json.JSONObject getResponseJson()
throws java.lang.Exception
RemoteDataResultgetResponseJson in interface RemoteDataResultjava.lang.Exception - if the remote call failed.public DBRows getResponseRows() throws java.lang.Exception
RemoteDataResultgetResponseRows in interface RemoteDataResultjava.lang.Exception - if the remote call failed.