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;
Composes types during serialization.
Definition Composer.h:101
Manages the decomposition of types during serialization.
Definition Decomposer.h:121
Dispatches requests to a service procedure.
Definition Responder.h:50
Remote service definition.
Definition ServiceDefinition.h:59
Event loop of a thread or process.
Definition EventLoop.h:83
Convert between unicode and UTF-8.
Definition Utf8Codec.h:44
XML-RPC fault exception.
Definition Fault.h:44
Responder(Remoting::ServiceDefinition &service)
Construct with Service.
virtual ~Responder()
Destructor.
virtual void onCancel()
Cancels all operations.
void beginMessage(std::istream &is)
Parses the XML-RPC message.
void beginResult(std::ostream &os)
Formats the XML-RPC result.
virtual void onReady()
The service procedure has finished.
void setFault(int rc, const char *msg)
Fails the service procedure.
bool advanceResult()
Formats the XML-RPC message.
bool parseMessage()
Parses the XML-RPC message.
void finishResult()
Formats the XML-RPC message.
bool isFailed() const
Indicates if the procedure has failed.
virtual void onFault(const Fault &fault)=0
The service procedure has failed.
virtual void onResult()=0
The service procedure has finished.
void finishMessage(System::EventLoop &loop)
Parses the XML-RPC message.
XML document node.
Definition Node.h:51
Reads XML as a Stream of XML Nodes.
Definition XmlReader.h:80
XML RPC services and clients.
Core module.
Definition Allocator.h:33