qpid::Url Struct Reference

An AMQP URL contains a list of addresses. More...

#include <Url.h>

List of all members.

Public Member Functions

std::string str () const
 Convert to string form.
 Url ()
 Empty URL.
 Url (const Address &addr)
 URL containing a single address.
 Url (const std::string &url)
 Parse url, throw InvalidUrl if invalid.
 Url (const char *url)
 Parse url, throw InvalidUrl if invalid.
template<class T>
Urloperator= (T s)
void throwIfEmpty () const
 Throw InvalidUrl if the URL does not contain any addresses.
void parse (const char *url)
 Replace contents with parsed URL as defined in https://wiki.108.redhat.com/jira/browse/AMQP-95
Exceptions:
InvalidUrl if the url is invalid.

void parse (const std::string &url)
void parseNoThrow (const char *url)
 Replace contesnts with parsed URL as defined in https://wiki.108.redhat.com/jira/browse/AMQP-95 url.empty() will be true if url is invalid.

Static Public Member Functions

static Url getHostNameUrl (uint16_t port)
 Url with the hostname as returned by gethostname(2).
static Url getIpAddressesUrl (uint16_t port)
 Url with local IP address(es), may be more than one address on a multi-homed host.


Detailed Description

An AMQP URL contains a list of addresses.


The documentation for this struct was generated from the following file:
Generated on Thu Apr 10 11:08:40 2008 for Qpid by  doxygen 1.4.7