#include <llservicebuilder.h>
Collaboration diagram for LLServiceBuilder:

Public Member Functions | |
| LLServiceBuilder (void) | |
| ~LLServiceBuilder (void) | |
| void | loadServiceDefinitionsFromFile (const std::string &service_filename) |
| Initialize this object with the service definitions. | |
| std::string | buildServiceURI (const std::string &service_name) |
| Build a service url if the url needs no construction parameters. | |
| std::string | buildServiceURI (const std::string &service_name, const LLSD &option_map) |
| Build a service url if the url with construction parameters. | |
| void | createServiceDefinition (const std::string &service_name, LLSD &service_url) |
| Helper method which builds construction state for a service. | |
Protected Attributes | |
| std::map< std::string, std::string > | mServiceMap |
Private Member Functions | |
| LOG_CLASS (LLServiceBuilder) | |
Definition at line 46 of file llservicebuilder.h.
| LLServiceBuilder::LLServiceBuilder | ( | void | ) | [inline] |
Definition at line 50 of file llservicebuilder.h.
| LLServiceBuilder::~LLServiceBuilder | ( | void | ) | [inline] |
Definition at line 51 of file llservicebuilder.h.
| std::string LLServiceBuilder::buildServiceURI | ( | const std::string & | service_name, | |
| const LLSD & | option_map | |||
| ) |
Build a service url if the url with construction parameters.
The parameter substitution supports string substituition from RUSS: [[Recursive_URL_Substitution_Syntax]]
| service_name | The name of the service you want to call. | |
| option_map | The parameters in a map of name:value for the service. |
Definition at line 110 of file llservicebuilder.cpp.
References LLSD::beginMap(), buildServiceURI(), LLSD::endMap(), LLSD::isMap(), llendl, llwarns, and LLURI::mapToQueryString().
| std::string LLServiceBuilder::buildServiceURI | ( | const std::string & | service_name | ) |
Build a service url if the url needs no construction parameters.
| service_name | The name of the service you want to call. |
Definition at line 88 of file llservicebuilder.cpp.
References LLSD::asString(), LLApp::getOption(), LLApp::instance(), llendl, llwarns, and mServiceMap.
Referenced by buildServiceURI().
| void LLServiceBuilder::createServiceDefinition | ( | const std::string & | service_name, | |
| LLSD & | service_url | |||
| ) |
Helper method which builds construction state for a service.
This method should probably be protected, but we need to test this method.
Definition at line 66 of file llservicebuilder.cpp.
References LLSD::asString(), LLSD::beginMap(), LLSD::endMap(), LLSD::isMap(), LLSD::isString(), and mServiceMap.
Referenced by loadServiceDefinitionsFromFile().
| void LLServiceBuilder::loadServiceDefinitionsFromFile | ( | const std::string & | service_filename | ) |
Initialize this object with the service definitions.
| service_filename | The services definition files -- services.xml. |
Definition at line 39 of file llservicebuilder.cpp.
References LLSD::beginArray(), createServiceDefinition(), LLSD::endArray(), LLSDSerialize::fromXML(), llendl, llifstream, llinfos, and llwarns.
| LLServiceBuilder::LOG_CLASS | ( | LLServiceBuilder | ) | [private] |
std::map<std::string, std::string> LLServiceBuilder::mServiceMap [protected] |
Definition at line 91 of file llservicebuilder.h.
Referenced by buildServiceURI(), and createServiceDefinition().
1.4.7