78 namespace JsonRpcHandler {
92 "help":
"shows a list of JSON-RPC methods registered with this handler",
96 (
"function":
"listMethods",
97 "help":
"lists JSON-RPC method names registered with this handler",
98 "text":
"system.listMethods",
101 (
"function":
"system_describe",
102 "help":
"returns the service description object as per the JSON-RPC 1.1 spec",
103 "text":
"system.describe",
146 constructor(AbstractAuthenticator auth, list methods, *code getLogMessage,
bool dbg = False, *
string get_prefix, *code log);
157 addMethod(
string name, code func,
string text,
string help, any logopt, any cmark);
184 hash system_describe();
196 log(hash cx,
string str);
203 final hash callMethod(hash cx, any params);
209 final hash handleRequest(hash cx, hash hdr, *data body);
bool getDebug()
returns the current status of the debug flag
const Version
implementation of the handler
Definition: JsonRpcHandler.qm.dox.h:87
setDebug(bool dbg=True)
turns on or off debugging; when debugging is enabled more verbose error messages are reported ...
JsonRpcHandler class definition; to be registered as a handler in the HttpServer class.
Definition: JsonRpcHandler.qm.dox.h:83
const InternalMethods
internal methods of the handler (introspection)
Definition: JsonRpcHandler.qm.dox.h:90
final addMethodInternal(hash h)
nodoc
constructor(AbstractAuthenticator auth, list methods, *code getLogMessage, bool dbg=False, *string get_prefix, *code log)
creates the handler with the given method list
addMethod(string name, code func, string text, string help, any logopt, any cmark)
adds a method to the handler dynamically