Package com.openfin.desktop
Class Ack
- java.lang.Object
-
- java.util.EventObject
-
- com.openfin.desktop.Ack
-
- All Implemented Interfaces:
java.io.Serializable
public class Ack extends java.util.EventObjectA message that is delivered to an AckListener when an action has been processed by AppDesktop- See Also:
AckListener, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Ack(org.json.JSONObject object, java.lang.Object source)Ack constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectgetData()Returns the value of "data" from message as JObjectjava.lang.StringgetErrorStack()When the ack was not successful, it might cause Openfin Desktop Runtime error.org.json.JSONObjectgetJsonObject()Returns the message as a JObjectjava.lang.StringgetReason()Return reason if Ack has errorbooleanisSuccessful()Returns Returns true if message contains "success":"true"
-
-
-
Method Detail
-
isSuccessful
public boolean isSuccessful()
Returns Returns true if message contains "success":"true"- Returns:
- Returns true if message contains "success":"true"
-
getReason
public java.lang.String getReason()
Return reason if Ack has error- Returns:
- reason for error
-
getJsonObject
public org.json.JSONObject getJsonObject()
Returns the message as a JObject- Returns:
- the message as a JObject
-
getData
public java.lang.Object getData()
Returns the value of "data" from message as JObject- Returns:
- the value of "data" from message as JObject
-
getErrorStack
public java.lang.String getErrorStack()
When the ack was not successful, it might cause Openfin Desktop Runtime error. This method returns the stack trace of the error, if it's available.- Returns:
- the stack trace of runtime error, null if not available.
-
-