27 #include <proton/type_compat.h>
43 PN_CPP_DEPRECATED(
"Use a third-party URL library")
47 PN_CPP_EXTERN
explicit url_error(
const std::string&);
66 class PN_CPP_DEPRECATED("Use a third-party URL library")
url {
68 static const std::string
AMQP;
78 PN_CPP_EXTERN
url(
const std::string& url_str);
89 PN_CPP_EXTERN
url(
const std::string& url_str,
bool defaults);
104 PN_CPP_EXTERN
operator std::string()
const;
111 PN_CPP_EXTERN std::string
scheme()
const;
113 PN_CPP_EXTERN std::string
user()
const;
118 PN_CPP_EXTERN std::string
host()
const;
120 PN_CPP_EXTERN std::string
port()
const;
129 PN_CPP_EXTERN std::string
path()
const;
138 std::unique_ptr<impl> impl_;
142 friend PN_CPP_EXTERN std::ostream&
operator<<(std::ostream&,
const url&);
150 friend PN_CPP_EXTERN std::istream&
operator>>(std::istream&,
url&);
Deprecated - Use a third-party URL library.
Definition: url.hpp:66
url(const url &)
Copy a URL.
std::string host_port() const
host_port returns just the host:port part of the URL
static const std::string AMQPS
"amqps" prefix
Definition: url.hpp:69
url(const std::string &url_str)
Parse url_str as an AMQP URL.
friend std::string to_string(const url &)
Return URL as a string.
std::string host() const
The host name or IP address.
bool empty() const
True if the URL is empty.
url & operator=(const url &)
Copy a URL.
std::string port() const
port can be a number or a symbolic name such as "amqp".
std::string password() const
The password.
std::string scheme() const
amqp or amqps.
std::string user() const
The user name for authentication.
uint16_t port_int() const
port_int is the numeric value of the port.
std::string path() const
path is everything after the final "/".
static const std::string AMQP
"amqp" prefix
Definition: url.hpp:68
The main Proton namespace.
Definition: annotation_key.hpp:33
proton::codec::decoder & operator>>(proton::codec::decoder &d, map< K, T > &m)
Decode from a proton::map.
std::ostream & operator<<(std::ostream &, const binary &)
Print a binary value.
The base Proton error.
Definition: error.hpp:40
Deprecated - Use a third-party URL library.
Definition: url.hpp:44