JSON server-side request.
More...
#include <rpc/JSONRPCBackend.h>
JSON server-side request.
The request must have been created by the RPCClient and it must be contained in the buffer that is passed in the constructor.
- See also
- Backends
◆ ServerRequest()
◆ getCallId()
static std::string getCallId |
( |
const json::Value * |
request | ) |
|
|
inlinestatic |
Read call ID from the given request.
◆ getServiceMethod()
static void getServiceMethod |
( |
const json::Value * |
request, |
|
|
std::string & |
oService, |
|
|
std::string & |
oMethod |
|
) |
| |
|
inlinestatic |
Read service name and the method name from the given request.
The service name and method name must be returned via the by-reference parameters.
◆ getHeader()
void getHeader |
( |
std::string & |
oCallId, |
|
|
std::string & |
oService |
|
) |
| |
|
inline |
Read the request header including the call ID, the service name and the signature of the method.
The call ID and the service name must be returned via the by-reference parameters. The signature should be stored internally to be able to handle the methods below. This method is called first when a new request is handled by the RPCServer.
◆ checkSignature()
Check, if the passed signature is compatible with the signature that was read from the request header in the previous getHeader() call above.
◆ getSignature()
Return the signature, that was read from the request header in the previous getHeader() call above.
◆ getParameter()
void getParameter |
( |
P & |
oParam | ) |
|
|
inline |
Read and deserialize the next parameter from the request.
This method is called once for each parameter of the RPC method.
The documentation for this class was generated from the following file: