An AMQP URL contains a list of addresses.
More...
#include <qpid/Url.h>
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 Invalid if invalid.
|
| Url (const std::string &url, const std::string &defaultProtocol) |
| Parse url, throw Invalid if invalid.
|
| Url (const char *url) |
| Parse url, throw Invalid if invalid.
|
Url & | operator= (const char *s) |
Url & | operator= (const std::string &s) |
void | throwIfEmpty () const |
| Throw Invalid if the URL does not contain any addresses.
|
void | parse (const char *url) |
| Replace contents with parsed url
- Exceptions
-
|
void | parse (const char *url, const std::string &defaultProtocol) |
QPID_COMMON_INLINE_EXTERN void | parse (const std::string &url) |
void | parseNoThrow (const char *url) |
| Replace contesnts with parsed URL.
|
void | parseNoThrow (const char *url, const std::string &defaultProtocol) |
void | setUser (const std::string &) |
void | setPass (const std::string &) |
std::string | getUser () const |
std::string | getPass () const |
Public Attributes |
T | elements |
| STL member.
|
Detailed Description
An AMQP URL contains a list of addresses.
Definition at line 33 of file Url.h.
Constructor & Destructor Documentation
Empty URL.
Definition at line 48 of file Url.h.
qpid::Url::Url |
( |
const Address & |
addr | ) |
|
|
inlineexplicit |
URL containing a single address.
Definition at line 51 of file Url.h.
qpid::Url::Url |
( |
const std::string & |
url | ) |
|
|
inlineexplicit |
qpid::Url::Url |
( |
const std::string & |
url, |
|
|
const std::string & |
defaultProtocol |
|
) |
| |
|
inlineexplicit |
qpid::Url::Url |
( |
const char * |
url | ) |
|
|
inlineexplicit |
Member Function Documentation
static void qpid::Url::addProtocol |
( |
const std::string & |
tag | ) |
|
|
static |
Add a protocol tag to be recognzed in URLs.
Only for use by protcol plug-in initializers.
Url with the hostname as returned by gethostname(2)
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::getPass |
( |
| ) |
const |
std::string qpid::Url::getUser |
( |
| ) |
const |
Url& qpid::Url::operator= |
( |
const char * |
s | ) |
|
|
inline |
Url& qpid::Url::operator= |
( |
const std::string & |
s | ) |
|
|
inline |
void qpid::Url::parse |
( |
const char * |
url | ) |
|
Replace contents with parsed url
- Exceptions
-
Referenced by operator=(), and Url().
void qpid::Url::parse |
( |
const char * |
url, |
|
|
const std::string & |
defaultProtocol |
|
) |
| |
void qpid::Url::parseNoThrow |
( |
const char * |
url | ) |
|
Replace contesnts with parsed URL.
Replace with empty URL if invalid.
void qpid::Url::parseNoThrow |
( |
const char * |
url, |
|
|
const std::string & |
defaultProtocol |
|
) |
| |
void qpid::Url::setPass |
( |
const std::string & |
| ) |
|
void qpid::Url::setUser |
( |
const std::string & |
| ) |
|
std::string qpid::Url::str |
( |
| ) |
const |
void qpid::Url::throwIfEmpty |
( |
| ) |
const |
Throw Invalid if the URL does not contain any addresses.
Member Data Documentation
template<typename T>
T std::vector< T >::elements |
|
inherited |
The documentation for this struct was generated from the following file: