Apache Qpid C++ API
Apache Qpid - AMQP Messaging for Java JMS, C++, Python, Ruby, and .NET Apache Qpid Documentation

qpid::Url Struct Reference

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

#include <qpid/Url.h>

List of all members.

Classes

struct  Invalid

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 char *url)
 Parse url, throw Invalid if invalid.
Urloperator= (const Url &u)
Urloperator= (const char *s)
Urloperator= (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 as defined in https://wiki.108.redhat.com/jira/browse/AMQP-95

Exceptions:
Invalid 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.

Definition at line 35 of file Url.h.


Constructor & Destructor Documentation

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

Empty URL.

Definition at line 50 of file Url.h.

qpid::Url::Url ( const Address addr  )  [inline, explicit]

URL containing a single address.

Definition at line 53 of file Url.h.

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

Parse url, throw Invalid if invalid.

Definition at line 56 of file Url.h.

References parse().

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

Parse url, throw Invalid if invalid.

Definition at line 59 of file Url.h.

References parse().


Member Function Documentation

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

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.

Url& qpid::Url::operator= ( const std::string &  s  )  [inline]

Definition at line 63 of file Url.h.

References parse().

Url& qpid::Url::operator= ( const char *  s  )  [inline]

Definition at line 62 of file Url.h.

References parse().

Url& qpid::Url::operator= ( const Url u  )  [inline]

Definition at line 61 of file Url.h.

void qpid::Url::parse ( const std::string &  url  )  [inline]

Definition at line 73 of file Url.h.

References parse().

Referenced by parse().

void qpid::Url::parse ( const char *  url  ) 

Replace contents with parsed URL as defined in https://wiki.108.redhat.com/jira/browse/AMQP-95

Exceptions:
Invalid if the url is invalid.

Referenced by operator=(), and Url().

void qpid::Url::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.

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

Convert to string form.

Referenced by qpid::operator!=(), and qpid::operator==().

void qpid::Url::throwIfEmpty (  )  const

Throw Invalid if the URL does not contain any addresses.


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

Qpid C++ API Reference
Generated on Fri Nov 6 16:56:44 2009 for Qpid C++ Client API by doxygen 1.6.1