UniPRT SDK  v1.0.0.0
JsonComm Class Reference

Management (Mgmt) Comm using JSON format. Concerned with full/well formed Mgmt/JSON msg frames and forwards to any listeners via channels. More...

Inheritance diagram for JsonComm:

Public Member Functions

 JsonComm (IComm commToPtr)
 Start a JSON communication using the connection passed in. More...
 
IMgmtMsgListenerChannels< String > ChannelListenerJson ()
 
IMgmtMsgListenerChannels< MgmtMsgChannelListenerMgmtMsg ()
 
void close ()
 
void Dispose ()
 
void Send (String mgmtMsgToSend)
 Sends JSON mgmtMsgToSend using the connection that was passed in when object was created.
 
String SendAndWaitForResponse (String mgmtMsg, int respTimeoutMs)
 Send JSON msg mgmtMsg and wait respTimeoutMs before returning response. If no response received after timeout, empty string "" returned.
 

Static Public Member Functions

static String ReplaceJsonArrayValues (String json)
 

Protected Member Functions

void Dispose (boolean disposing)
 
void finalize () throws Throwable
 

Detailed Description

Management (Mgmt) Comm using JSON format. Concerned with full/well formed Mgmt/JSON msg frames and forwards to any listeners via channels.

Requires a communication connection for sending and listening for fully formed Mgmt messages.
This class also uses the communication connection to send and listen for JSON msgs.
Note that this class will read all data received from the communication connection as it is received in order to
listen and parse fully formed JSON messages.

Constructor & Destructor Documentation

◆ JsonComm()

JsonComm ( IComm  commToPtr)

Start a JSON communication using the connection passed in.

Connection must be opened and maintained opened by caller/user.