ADTF
3.18.4
|
Connector that sends RPC messages via HTTP. More...
Public Member Functions | |
cJSONClientConnector (const std::string &strUrl) | |
Constructor. More... | |
~cJSONClientConnector () | |
DTOR. | |
cJSONClientConnector (const cJSONClientConnector &)=delete | |
Disable copy construction. | |
cJSONClientConnector & | operator= (const cJSONClientConnector &)=delete |
Disable copy assignment. | |
cJSONClientConnector (cJSONClientConnector &&other) | |
Move constructor. More... | |
cJSONClientConnector & | operator= (cJSONClientConnector &&other) |
Move assignment. More... | |
void | SendRPCMessage (const std::string &message, std::string &result) override |
Send an RPC message to the connected url. More... | |
Private Attributes | |
cImplementation * | m_pImplementation |
Connector that sends RPC messages via HTTP.
Definition at line 37 of file json_http_rpc.h.
cJSONClientConnector | ( | const std::string & | strUrl | ) |
Constructor.
[in] | strUrl | The HTTP url, i.e. http://localhost:8000/system |
cJSONClientConnector | ( | cJSONClientConnector && | other | ) |
Move constructor.
[in,out] | other | Move from object *this is created from. Left in empty state. |
cJSONClientConnector& operator= | ( | cJSONClientConnector && | other | ) |
Move assignment.
[in,out] | other | Move from object *this is created from. Left in empty state. |
|
overridevirtual |
Send an RPC message to the connected url.
[in] | message | Message to send |
[out] | result | The result of the response |
jsonrpc::JsonRpcException | in case of a connection error |
Implements IClientConnector.