This class builds urls for us to use when making web service calls. More...
#include <llservicebuilder.h>
Public Member Functions | |
std::string | buildServiceURI (const std::string &service_name, const LLSD &option_map) |
Build a service url if the url with construction parameters. | |
std::string | buildServiceURI (const std::string &service_name) |
Build a service url if the url needs no construction parameters. | |
void | createServiceDefinition (const std::string &service_name, LLSD &service_url) |
Helper method which builds construction state for a service. | |
void | loadServiceDefinitionsFromFile (const std::string &service_filename) |
Initialize this object with the service definitions. |
This class builds urls for us to use when making web service calls.
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. |
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. |
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.
void LLServiceBuilder::loadServiceDefinitionsFromFile | ( | const std::string & | service_filename | ) |
Initialize this object with the service definitions.
service_filename | The services definition files -- services.xml. |