#include <llsdrpcclient.h>
Inheritance diagram for LLSDRPCClientFactory< Client >:
Public Member Functions | |
LLSDRPCClientFactory () | |
LLSDRPCClientFactory (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 |
This class eases construction of a basic sd rpc client. Here is an example of it's use: class LLUsefulService : public LLService { ... } LLService::registerCreator( "useful", LLService::creator_t(new LLSDRPCClientFactory<LLUsefulService>))
Definition at line 240 of file llsdrpcclient.h.
LLSDRPCClientFactory< Client >::LLSDRPCClientFactory | ( | ) | [inline] |
Definition at line 243 of file llsdrpcclient.h.
LLSDRPCClientFactory< Client >::LLSDRPCClientFactory | ( | const std::string & | fixed_url | ) | [inline] |
Definition at line 244 of file llsdrpcclient.h.
virtual bool LLSDRPCClientFactory< 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.
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 245 of file llsdrpcclient.h.
References LLURLRequest::addHeader(), LLURLRequest::HTTP_POST, lldebugs, llendl, LLSDRPCClientFactory< Client >::mURL, and LLURLRequest::setURL().
std::string LLSDRPCClientFactory< Client >::mURL [protected] |
Definition at line 266 of file llsdrpcclient.h.
Referenced by LLSDRPCClientFactory< Client >::build().