|
Qpid Proton C++
0.12.0
|
A proton URL. More...
#include <url.hpp>
Public Member Functions | |
| url () | |
| Create an empty URL. | |
| url (const std::string &url_str, bool defaults=true) | |
Parse url_str as an AMQP URL. More... | |
| url (const char *url_str, bool defaults=true) | |
Parse url_str as an AMQP URL. More... | |
| url (const url &) | |
| Copy a URL. | |
| url & | operator= (const url &) |
| Copy a URL. | |
| void | parse (const std::string &) |
| Parse a string as a URL. More... | |
| void | parse (const char *) |
| Parse a string as a URL. More... | |
| bool | empty () const |
| True if the URL is empty. | |
| std::string | str () const |
str returns the URL as a string | |
URL fields | |
| std::string | scheme () const |
| void | scheme (const std::string &) |
| std::string | password () const |
| void | password (const std::string &) |
| std::string | host () const |
| void | host (const std::string &) |
| void | port (const std::string &) |
port can be a number or a symbolic name such as "amqp". | |
| std::string | port () const |
| uint16_t | port_int () const |
port_int is the numeric value of the port. | |
| std::string | host_port () const |
host_port returns just the host:port part of the URL | |
| std::string | path () const |
path is everything after the final "/". | |
| void | path (const std::string &) |
Static Public Attributes | |
| static const std::string | AMQP |
| "amqp" prefix | |
| static const std::string | AMQPS |
| "amqps" prefix | |
A proton URL.
Proton URLs take the form <scheme>://<username>:<password>@<host>:<port>/<path>.
amqp or amqps. Host is a DNS name or IP address (v4 or v6).amqp.| url | ( | const std::string & | url_str, |
| bool | defaults = true |
||
| ) |
Parse url_str as an AMQP URL.
If defaults is true, fill in defaults for missing values otherwise return an empty string for missing values.
| url_error | if URL is invalid. |
| url | ( | const char * | url_str, |
| bool | defaults = true |
||
| ) |
Parse url_str as an AMQP URL.
If defaults is true, fill in defaults for missing values otherwise return an empty string for missing values.
| url_error | if URL is invalid. |
| void parse | ( | const std::string & | ) |
Parse a string as a URL.
| url_error | if URL is invalid. |
| void parse | ( | const char * | ) |
Parse a string as a URL.
| url_error | if URL is invalid. |
1.8.5