public interface OnRequestListener
| Modifier and Type | Method and Description |
|---|---|
void |
onAuthenticationFailure(java.lang.String source,
int index)
Invalid request or verify authentication failure.
|
void |
onCommandNotFound(java.lang.String source,
int index)
When Mismatch command will invoke
onUnkonwException(String, String, int). |
void |
onHeartbeat(org.json.JSONObject json,
int index)
Heart beat.
|
void |
onMonitor(org.json.JSONObject json,
int index)
Monitor information.
|
void |
onRequest(DefaultRequest request)
Received request.
|
void |
onUnkonwException(java.lang.String source,
java.lang.String message,
int index)
When Mismatch command will invoke
onUnkonwException(String, String, int). |
void onRequest(DefaultRequest request)
request - requestvoid onHeartbeat(org.json.JSONObject json,
int index)
json - Json packageindex - Request indexvoid onMonitor(org.json.JSONObject json,
int index)
json - Json packageindex - Request indexvoid onUnkonwException(java.lang.String source,
java.lang.String message,
int index)
onUnkonwException(String, String, int).source - Json formatmessage - messageindex - Request indexvoid onCommandNotFound(java.lang.String source,
int index)
onUnkonwException(String, String, int).source - Json formatindex - Request indexvoid onAuthenticationFailure(java.lang.String source,
int index)
source - Json formatindex - Request index