cxxtools::xmlrpc::HttpClient Class Reference

A cxxtools::xmlrpc::HttpClient executes xmlrpc requests on a xmlrpc server. More...

#include <cxxtools/xmlrpc/httpclient.h>

Inheritance diagram for cxxtools::xmlrpc::HttpClient:
cxxtools::xmlrpc::Client cxxtools::RemoteClient

Public Member Functions

 HttpClient ()
 HttpClient (SelectorBase &selector)
 HttpClient (SelectorBase &selector, const std::string &addr, unsigned short port, const std::string &url, bool ssl=false)
 HttpClient (SelectorBase &selector, const net::Uri &uri)
 HttpClient (const std::string &addr, unsigned short port, const std::string &url, bool ssl=false)
 HttpClient (const net::Uri &uri)
 HttpClient (const HttpClient &)
HttpClientoperator= (const HttpClient &)
virtual ~HttpClient ()
void prepareConnect (const net::AddrInfo &addrinfo, const std::string &url, bool ssl=false)
void prepareConnect (const net::Uri &uri)
void prepareConnect (const std::string &addr, unsigned short port, const std::string &url, bool ssl=false)
void connect ()
void connect (const net::AddrInfo &addrinfo, const std::string &url, bool ssl=false)
void connect (const net::Uri &uri)
void connect (const std::string &host, unsigned short port, const std::string &url, bool ssl=false)
void url (const std::string &url)
 sets the url part
void auth (const std::string &username, const std::string &password)
 sets username and password for authentification
void clearAuth ()
 removes username and password for authentification
void setSelector (SelectorBase &selector)
void wait (Milliseconds msecs=WaitInfinite)
- Public Member Functions inherited from cxxtools::xmlrpc::Client
 Client ()
virtual ~Client ()
void beginCall (IComposer &r, IRemoteProcedure &method, IDecomposer **argv, unsigned argc)
 This method is used internally to initiate a rpc request.
void endCall ()
 This method is used internally to finalize a rpc request.
void call (IComposer &r, IRemoteProcedure &method, IDecomposer **argv, unsigned argc)
 This method is used internally to initiate a rpc request.
Milliseconds timeout () const
 Returns the timeout for syncronous requests.
void timeout (Milliseconds t)
 Sets the timeout for syncronous requests.
Milliseconds connectTimeout () const
void connectTimeout (Milliseconds t)
std::string url () const
const IRemoteProcedureactiveProcedure () const
void cancel ()
- Public Member Functions inherited from cxxtools::RemoteClient
virtual ~RemoteClient ()

Additional Inherited Members

- Static Public Attributes inherited from cxxtools::RemoteClient
static const std::size_t WaitInfinite = static_cast<std::size_t>(-1)
- Protected Member Functions inherited from cxxtools::xmlrpc::Client
 Client (Client &c)
Clientoperator= (const Client &c)
void impl (ClientImpl *i)

Detailed Description

A cxxtools::xmlrpc::HttpClient executes xmlrpc requests on a xmlrpc server.

Constructor & Destructor Documentation

cxxtools::xmlrpc::HttpClient::HttpClient ( )
inline
cxxtools::xmlrpc::HttpClient::HttpClient ( SelectorBase selector)
inlineexplicit
cxxtools::xmlrpc::HttpClient::HttpClient ( SelectorBase selector,
const std::string &  addr,
unsigned short  port,
const std::string &  url,
bool  ssl = false 
)
cxxtools::xmlrpc::HttpClient::HttpClient ( SelectorBase selector,
const net::Uri uri 
)
cxxtools::xmlrpc::HttpClient::HttpClient ( const std::string &  addr,
unsigned short  port,
const std::string &  url,
bool  ssl = false 
)
cxxtools::xmlrpc::HttpClient::HttpClient ( const net::Uri uri)
explicit
cxxtools::xmlrpc::HttpClient::HttpClient ( const HttpClient )
virtual cxxtools::xmlrpc::HttpClient::~HttpClient ( )
virtual

Member Function Documentation

void cxxtools::xmlrpc::HttpClient::auth ( const std::string &  username,
const std::string &  password 
)

sets username and password for authentification

void cxxtools::xmlrpc::HttpClient::clearAuth ( )

removes username and password for authentification

void cxxtools::xmlrpc::HttpClient::connect ( )
void cxxtools::xmlrpc::HttpClient::connect ( const net::AddrInfo addrinfo,
const std::string &  url,
bool  ssl = false 
)
inline
void cxxtools::xmlrpc::HttpClient::connect ( const net::Uri uri)
inline
void cxxtools::xmlrpc::HttpClient::connect ( const std::string &  host,
unsigned short  port,
const std::string &  url,
bool  ssl = false 
)
inline
HttpClient& cxxtools::xmlrpc::HttpClient::operator= ( const HttpClient )
void cxxtools::xmlrpc::HttpClient::prepareConnect ( const net::AddrInfo addrinfo,
const std::string &  url,
bool  ssl = false 
)
void cxxtools::xmlrpc::HttpClient::prepareConnect ( const net::Uri uri)
void cxxtools::xmlrpc::HttpClient::prepareConnect ( const std::string &  addr,
unsigned short  port,
const std::string &  url,
bool  ssl = false 
)
void cxxtools::xmlrpc::HttpClient::setSelector ( SelectorBase selector)
void cxxtools::xmlrpc::HttpClient::url ( const std::string &  url)

sets the url part

void cxxtools::xmlrpc::HttpClient::wait ( Milliseconds  msecs = WaitInfinite)
virtual

The documentation for this class was generated from the following file: