summaryrefslogtreecommitdiff
path: root/src/XmlRpcMethod.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/XmlRpcMethod.h')
-rw-r--r--src/XmlRpcMethod.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/XmlRpcMethod.h b/src/XmlRpcMethod.h
index cbdf65c1..80a49fe5 100644
--- a/src/XmlRpcMethod.h
+++ b/src/XmlRpcMethod.h
@@ -64,6 +64,7 @@ struct XmlRpcResponse;
class XmlRpcMethod {
private:
SharedHandle<OptionParser> optionParser_;
+ bool jsonRpc_;
protected:
// Subclass must implement this function to fulfil XmlRpcRequest
// req. The return value of this method is used as a return value
@@ -102,6 +103,15 @@ public:
// Do work to fulfill XmlRpcRequest req and returns its result as
// XmlRpcResponse. This method delegates to process() method.
XmlRpcResponse execute(const XmlRpcRequest& req, DownloadEngine* e);
+ // Set whether JSON-RPC style parameter handling.
+ void setJsonRpc(bool f)
+ {
+ jsonRpc_ = f;
+ }
+ bool getJsonRpc() const
+ {
+ return jsonRpc_;
+ }
};
} // namespace xmlrpc