public interface NodeListener<T> extends FRListener<T>
AuthService.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
TAG |
| Modifier and Type | Method and Description |
|---|---|
default java.lang.String |
getStage(java.util.List<Callback> callbacks)
Workaround stage property for AM version < 7.0.
|
void |
onCallbackReceived(Node node)
Notify the listener that the
AuthService has been started and moved to the first node. |
default Node |
onCallbackReceived(java.lang.String authServiceId,
org.json.JSONObject response)
Transform the response from AM Intelligent Tree to Node Object, after the transformation
onCallbackReceived(Node) will be invoked with the returned Node. |
default java.util.List<Callback> |
parseCallback(org.json.JSONArray jsonArray)
Parse the JSON Array callback response from AM, and transform to
Callback instances. |
onException, onSuccessvoid onCallbackReceived(Node node)
AuthService has been started and moved to the first node.node - The first Nodedefault Node onCallbackReceived(java.lang.String authServiceId, org.json.JSONObject response) throws java.lang.Exception
onCallbackReceived(Node) will be invoked with the returned Node.authServiceId - Unique Auth Service Idresponse - The JSON Response from AM Intelligent Treejava.lang.Exception - Any error during the transformationdefault java.util.List<Callback> parseCallback(org.json.JSONArray jsonArray) throws java.lang.Exception
Callback instances.jsonArray - The JSON Array callback response from AMCallback Objectjava.lang.Exception - Any error during the transformationdefault java.lang.String getStage(java.util.List<Callback> callbacks)
callbacks - Callback from Intelligent Tree