#include <XmlRpcServerConnection.h>
Inheritance diagram for XmlRpc::XmlRpcServerConnection:

Public Member Functions | |
| XmlRpcServerConnection (int fd, XmlRpcServer *server, bool deleteOnClose=false) | |
| Constructor. | |
| virtual | ~XmlRpcServerConnection () |
| Destructor. | |
| virtual unsigned | handleEvent (unsigned eventType) |
| Handle IO on the client connection socket. | |
Static Public Attributes | |
| const char | METHODNAME_TAG [] = "<methodName>" |
| const char | PARAMS_TAG [] = "<params>" |
| const char | PARAMS_ETAG [] = "</params>" |
| const char | PARAM_TAG [] = "<param>" |
| const char | PARAM_ETAG [] = "</param>" |
| const std::string | SYSTEM_MULTICALL = "system.multicall" |
| const std::string | METHODNAME = "methodName" |
| const std::string | PARAMS = "params" |
| const std::string | FAULTCODE = "faultCode" |
| const std::string | FAULTSTRING = "faultString" |
Protected Types | |
| enum | ServerConnectionState { READ_HEADER, READ_REQUEST, WRITE_RESPONSE } |
Protected Member Functions | |
| bool | readHeader () |
| bool | readRequest () |
| bool | writeResponse () |
| virtual void | executeRequest () |
| std::string | parseRequest (XmlRpcValue ¶ms) |
| bool | executeMethod (const std::string &methodName, XmlRpcValue ¶ms, XmlRpcValue &result) |
| bool | executeMulticall (const std::string &methodName, XmlRpcValue ¶ms, XmlRpcValue &result) |
| void | generateResponse (std::string const &resultXml) |
| void | generateFaultResponse (std::string const &msg, int errorCode=-1) |
| std::string | generateHeader (std::string const &body) |
Protected Attributes | |
| XmlRpcServer * | _server |
| ServerConnectionState | _connectionState |
| std::string | _header |
| int | _contentLength |
| std::string | _request |
| std::string | _response |
| int | _bytesWritten |
| bool | _keepAlive |
|
|
Handle IO on the client connection socket.
Implements XmlRpc::XmlRpcSource. |
1.3-rc3