Made to Order Software Corporation Logo

LLChatLib: LLServiceBuilder Class Reference

LLServiceBuilder Class Reference

This class builds urls for us to use when making web service calls. More...

#include <llservicebuilder.h>

List of all members.

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.


Detailed Description

This class builds urls for us to use when making web service calls.


Member Function Documentation

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]]

Parameters:
service_name The name of the service you want to call.
option_map The parameters in a map of name:value for the service.

Here is the call graph for this function:

std::string LLServiceBuilder::buildServiceURI ( const std::string &  service_name  ) 

Build a service url if the url needs no construction parameters.

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.

Parameters:
service_filename The services definition files -- services.xml.

Here is the call graph for this function:


The documentation for this class was generated from the following files:
Generated on Thu Sep 23 17:18:46 2010 for LLChatLib by  doxygen 1.6.3