![]() |
Kea 3.0.0
|
Represents an URL. More...
#include <url.h>
Public Types | |
| enum | Scheme { HTTP , HTTPS } |
| Scheme: https or http. More... | |
Public Member Functions | |
| Url (const std::string &url) | |
| Constructor. | |
| std::string | getErrorMessage () const |
| Returns parsing error message. | |
| std::string | getPath () const |
| Returns path. | |
| unsigned | getPort () const |
| Returns port number. | |
| Scheme | getScheme () const |
| Returns parsed scheme. | |
| std::string | getStrippedHostname () const |
| Returns hostname stripped from [ ] characters surrounding IPv6 address. | |
| bool | isValid () const |
| Checks if the URL is valid. | |
| bool | operator< (const Url &url) const |
| compares URLs lexically. | |
| const std::string & | rawUrl () const |
| Returns the raw, unparsed URL string. | |
| std::string | toText () const |
| Returns textual representation of the URL. | |
Represents an URL.
It parses the provided URL and allows for retrieving the parts of it after parsing.
|
explicit |
|
inline |
Returns parsing error message.
Definition at line 52 of file url.h.
Referenced by isc::netconf::ControlSocketConfigParser::parse().
| std::string isc::http::Url::getPath | ( | ) | const |
Returns path.
| InvalidOperation | if URL is invalid. |
Definition at line 59 of file url.cc.
Referenced by toText().
| unsigned isc::http::Url::getPort | ( | ) | const |
Returns port number.
| InvalidOperation | if URL is invalid. |
Definition at line 53 of file url.cc.
Referenced by toText().
| Url::Scheme isc::http::Url::getScheme | ( | ) | const |
Returns parsed scheme.
| InvalidOperation | if URL is invalid. |
Definition at line 31 of file url.cc.
Referenced by isc::http::HttpClient::asyncSendRequest(), and toText().
| std::string isc::http::Url::getStrippedHostname | ( | ) | const |
Returns hostname stripped from [ ] characters surrounding IPv6 address.
| InvalidOperation | if URL is invalid. |
|
inline |
Checks if the URL is valid.
Definition at line 47 of file url.h.
Referenced by isc::http::HttpClient::asyncSendRequest(), and isc::netconf::ControlSocketConfigParser::parse().
| bool isc::http::Url::operator< | ( | const Url & | url | ) | const |
|
inline |
Returns the raw, unparsed URL string.
Definition at line 87 of file url.h.
Referenced by operator<().
| std::string isc::http::Url::toText | ( | ) | const |