#include <Url.h>
Inherits std::vector< T >.
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> | ||||
Url & | operator= (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
| ||||
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. |
qpid::Url::Url | ( | ) | [inline] |
Empty URL.
qpid::Url::Url | ( | const std::string & | url | ) | [inline, explicit] |
qpid::Url::Url | ( | const char * | url | ) | [inline, explicit] |
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.