Class MDPClient

java.lang.Object
io.github.dephin.mdp.MDPClient
All Implemented Interfaces:
MDPProtocol

public class MDPClient
extends java.lang.Object
implements MDPProtocol
  • Constructor Summary

    Constructors 
    Constructor Description
    MDPClient​(java.lang.String uriStr, MDPHandler handler, java.util.Map<java.lang.String,​java.lang.String> httpHeaders, int connectTimeout, long rpcTimeout)  
  • Method Summary

    Modifier and Type Method Description
    org.json.JSONObject callRPC​(java.lang.String event, org.json.JSONObject data)  
    void close()  
    void connect()  
    void onClose​(int code, java.lang.String reason, boolean remote)  
    void onError​(java.lang.Exception ex)  
    void onMessage​(java.lang.String message)  
    void onOpen()  
    void sendError​(java.lang.String err)  
    void sendEvent​(java.lang.String event, org.json.JSONObject data)  
    void sendMessage​(org.json.JSONObject msg)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait