23 #include "xmlrpc_processor.h"
25 #include <logging/logger.h>
26 #include <webview/error_reply.h>
27 #include <webview/page_reply.h>
28 #include <webview/request.h>
31 #include <xmlrpc-c/registry.hpp>
36 #define MAX_REQUEST_LENGTH (1024 * 512)
50 xmlrpc_registry_.reset(
new xmlrpc_c::registry);
56 xmlrpc_registry_.reset();
62 std::shared_ptr<xmlrpc_c::registry>
65 return xmlrpc_registry_;
79 xmlrpc_registry_->processCall(request->
body(), &response);
fawkes::WebReply * process_request(const fawkes::WebRequest *request)
Process request.
~XmlRpcRequestProcessor()
Destructor.
XmlRpcRequestProcessor(fawkes::Logger *logger)
Constructor.
std::shared_ptr< xmlrpc_c::registry > registry()
Get XML-RPC registry.
@ HTTP_METHOD_NOT_ALLOWED
METHOD_NOT_ALLOWED.
Web request meta data carrier.
const std::string & body() const
Get body of request.
Method method() const
Get HTTP transfer method.
Fawkes library namespace.