LLXMLSDRPCClientFactory< Client > Class Template Reference

Basic implementation for making an XMLRPC to SD RPC client factory. More...

#include <llsdrpcclient.h>

Inheritance diagram for LLXMLSDRPCClientFactory< Client >:

Inheritance graph
[legend]
Collaboration diagram for LLXMLSDRPCClientFactory< Client >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLXMLSDRPCClientFactory ()
 LLXMLSDRPCClientFactory (const std::string &fixed_url)
virtual bool build (LLPumpIO::chain_t &chain, LLSD context) const
 Build the chian with in as the first and end as the last.

Protected Attributes

std::string mURL

Detailed Description

template<class Client>
class LLXMLSDRPCClientFactory< Client >

Basic implementation for making an XMLRPC to SD RPC client factory.

This class eases construction of a basic sd rpc client which uses xmlrpc as a serialization grammar. Here is an example of it's use: class LLUsefulService : public LLService { ... } LLService::registerCreator( "useful", LLService::creator_t(new LLXMLSDRPCClientFactory<LLUsefulService>))

Definition at line 283 of file llsdrpcclient.h.


Constructor & Destructor Documentation

template<class Client>
LLXMLSDRPCClientFactory< Client >::LLXMLSDRPCClientFactory (  )  [inline]

Definition at line 286 of file llsdrpcclient.h.

template<class Client>
LLXMLSDRPCClientFactory< Client >::LLXMLSDRPCClientFactory ( const std::string &  fixed_url  )  [inline]

Definition at line 287 of file llsdrpcclient.h.


Member Function Documentation

template<class Client>
virtual bool LLXMLSDRPCClientFactory< Client >::build ( LLPumpIO::chain_t chain,
LLSD  context 
) const [inline, virtual]

Build the chian with in as the first and end as the last.

The caller of the LLChainIOFactory is responsible for managing the memory of the in pipe. All of the chains generated by the factory will be ref counted as usual, so the caller will also need to break the links in the chain.

Parameters:
chain The chain which will have new pipes appended
context A context for use by this factory if you choose Returns true if the call was successful.

Implements LLChainIOFactory.

Definition at line 288 of file llsdrpcclient.h.

References LLURLRequest::addHeader(), LLURLRequest::HTTP_POST, lldebugs, llendl, LLXMLSDRPCClientFactory< Client >::mURL, NULL, and LLURLRequest::setURL().


Member Data Documentation

template<class Client>
std::string LLXMLSDRPCClientFactory< Client >::mURL [protected]

Definition at line 311 of file llsdrpcclient.h.

Referenced by LLXMLSDRPCClientFactory< Client >::build().


The documentation for this class was generated from the following file:
Generated on Thu Jul 1 06:12:05 2010 for Second Life Viewer by  doxygen 1.4.7