qpid::Url Struct Reference

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

#include <Url.h>

Inherits std::vector< T >.

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.

Constructor & Destructor Documentation

qpid::Url::Url (  )  [inline]

Empty URL.

qpid::Url::Url ( const std::string &  url  )  [inline, explicit]

Parse url, throw InvalidUrl if invalid.

References parse().

qpid::Url::Url ( const char *  url  )  [inline, explicit]

Parse url, throw InvalidUrl if invalid.

References parse().


Member Function Documentation

static Url qpid::Url::getIpAddressesUrl ( uint16_t  port  )  [static]

Url with local IP address(es), may be more than one address on a multi-homed host.

std::string qpid::Url::str (  )  const

Convert to string form.

void qpid::Url::throwIfEmpty (  )  const

Throw InvalidUrl if the URL does not contain any addresses.


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

Generated on Thu May 15 22:22:36 2008 for Qpid by  doxygen 1.5.5