activemq-cpp-3.6.0
activemq::util::URISupport Class Reference

#include <src/main/activemq/util/URISupport.h>

Static Public Member Functions

static void parseURL (const std::string &URI, decaf::util::Properties &properties)
 Parses the properties out of the provided Broker URI and sets them in the passed Properties Object.
static CompositeData parseComposite (const URI &uri)
 Parses a Composite URI into a Composite Data instance, the Composite URI takes the for scheme://(uri1,uri2,...uriN)?param1=value1, each of the composite URIs is stored in the CompositeData's internal list.
static decaf::util::Properties parseQuery (std::string query)
 Parse the Query portion of a URI String and return a Simple Properties object containing the parameter names as keys, and the parameter values and values of the Properties.
static void parseQuery (std::string query, decaf::util::Properties *properties)
 Parse the Query portion of a URI String and return a Simple Properties object containing the parameter names as keys, and the parameter values and values of the Properties.
static std::string createQueryString (const Properties &options)
 Given a properties object create a string that can be appended to a URI as a valid Query string.

Member Function Documentation

static std::string activemq::util::URISupport::createQueryString ( const Properties options)
static

Given a properties object create a string that can be appended to a URI as a valid Query string.

Parameters
optionsProperties object containing key / value query values.
Returns
a valid URI query string.
Exceptions
URISyntaxExceptionif the string in the Properties object can't be encoded into a valid URI Query string.
static CompositeData activemq::util::URISupport::parseComposite ( const URI uri)
static

Parses a Composite URI into a Composite Data instance, the Composite URI takes the for scheme://(uri1,uri2,...uriN)?param1=value1, each of the composite URIs is stored in the CompositeData's internal list.

Parameters
uri- The Composite URI to parse.
Returns
a new CompositeData object with the parsed data
Exceptions
URISyntaxExceptionif the URI is not well formed.
static decaf::util::Properties activemq::util::URISupport::parseQuery ( std::string  query)
static

Parse the Query portion of a URI String and return a Simple Properties object containing the parameter names as keys, and the parameter values and values of the Properties.

Parameters
queryThe query string to parse and extract the encoded properties.
Returns
Properties object with the parsed output.
Exceptions
IllegalArgumentExceptionif the Query string is not well formed.
static void activemq::util::URISupport::parseQuery ( std::string  query,
decaf::util::Properties properties 
)
static

Parse the Query portion of a URI String and return a Simple Properties object containing the parameter names as keys, and the parameter values and values of the Properties.

Parameters
query- the query string to parse.
properties- object pointer to get the parsed output.
Exceptions
IllegalArgumentExceptionif the Query string is not well formed.
static void activemq::util::URISupport::parseURL ( const std::string &  URI,
decaf::util::Properties properties 
)
static

Parses the properties out of the provided Broker URI and sets them in the passed Properties Object.

Parameters
URIa Broker URI to parse
propertiesa Properties object to set the parsed values in
Exceptions
IllegalArgumentExceptionif the passed URI is invalid

The documentation for this class was generated from the following file: