29 #ifndef Pt_XmlRpc_Responder_h
30 #define Pt_XmlRpc_Responder_h
32 #include <Pt/XmlRpc/Api.h>
33 #include <Pt/XmlRpc/Fault.h>
34 #include <Pt/XmlRpc/Formatter.h>
35 #include <Pt/Remoting/Responder.h>
36 #include <Pt/Xml/InputSource.h>
37 #include <Pt/Xml/XmlReader.h>
38 #include <Pt/TextStream.h>
39 #include <Pt/NonCopyable.h>
121 void beginFault(std::ostream& os,
const Fault& fault);
174 Formatter _formatter;
185 #endif // Pt_XmlRpc_Responder_h
Core module.
Definition: Allocator.h:33
Manages the decomposition of types during serialization.
Definition: Decomposer.h:44
Reads XML as a Stream of XML Nodes.
Definition: XmlReader.h:80
Convert between unicode and UTF-8.
Definition: Utf8Codec.h:44
virtual ~Responder()
Destructor.
void beginResult(std::ostream &os)
Formats the XML-RPC result.
Dispatches requests to a service procedure.
Definition: Responder.h:49
bool advanceResult()
Formats the XML-RPC message.
virtual void onReady()
The service procedure has finished.
Remote service definition.
Definition: Api-ServiceDefinition.h:22
void beginMessage(std::istream &is)
Parses the XML-RPC message.
bool parseMessage()
Parses the XML-RPC message.
Dispatches requests to a service procedure.
Definition: Responder.h:50
void setFault(int rc, const char *msg)
Fails the service procedure.
Responder(Remoting::ServiceDefinition &service)
Construct with Service.
XML document node.
Definition: Node.h:51
Thread-safe event loop supporting I/O multiplexing and Timers.
Definition: EventLoop.h:74
Composes types during serialization.
Definition: Composer.h:43
bool isFailed() const
Indicates if the procedure has failed.
void finishResult()
Formats the XML-RPC message.
virtual void onResult()=0
The service procedure has finished.
virtual void onCancel()
Cancels all operations.
virtual void onFault(const Fault &fault)=0
The service procedure has failed.
void finishMessage(System::EventLoop &loop)
Parses the XML-RPC message.
XML-RPC fault exception.
Definition: Fault.h:44