#include <Pt/XmlRpc/HttpClient.h>
A client for remote procedure calls via HTTP.
Inherits Client, and Connectable.
◆ onBeginInvoke()
| virtual void onBeginInvoke |
( |
| ) |
|
|
protectedvirtual |
Derived Clients implement this method to format and send a message to the service.
Implements Client.
◆ onInvoke()
| virtual void onInvoke |
( |
| ) |
|
|
protectedvirtual |
Derived Clients implement this method to format and send a message to the service and receive and parse the result.
Implements Client.
◆ onCancel()
| virtual void onCancel |
( |
| ) |
|
|
protectedvirtual |
Derived Clients implement this method to cancel the remote procedure call.
Reimplemented from Client.
◆ beginMessage()
| void beginMessage |
( |
std::ostream & |
os | ) |
|
|
protectedinherited |
This method is used by derived Clients in onInvoke() and onCall() to begin formatting a XML-RPC message to a std::ostream.
◆ advanceMessage()
This method is used by derived Clients in onInvoke() and onCall() to format a XML-RPC message. Each call generates a chunk of the message and returns true if the message is complete.
◆ finishMessage()
This method is used by derived Clients in onInvoke() and onCall() to format the end of a XML-RPC message. It is called after advanceMessage() returns true.
◆ beginResult()
| void beginResult |
( |
std::istream & |
is | ) |
|
|
protectedinherited |
This method is used by derived Clients to begin parsing a XML-RPC result from a std::istream.
◆ parseResult()
This method is used by derived Clients to parse a XML-RPC result Each call consumes the available data from the std::istream set with beginResult() and returns true if the result is complete.
◆ processResult()
| void processResult |
( |
std::istream & |
is | ) |
|
|
protectedinherited |
This method is used by derived Clients after the XML-RPC result has been parsed by parseResult(). The current RemoteProcedure will receive completion notification to process the result.
Parses the XML-RPC result.
This method is used by derived Clients in in onCall() to parse a XML-RPC result from a std::istream.
◆ setFault()
| void setFault |
( |
int |
rc, |
|
|
const char * |
msg |
|
) |
| |
|
protectedinherited |
This method is used by derived Clients before calling finishResult() so that the RemoteProcedure throws a Fault when the result is processed.
◆ setReady()
This method is used by derived Clients after the XML-RPC result has been parsed by parseResult(). The current RemoteProcedure will receive completion notification to process the result.