davix
0.4.1
|
#include <davix_uri.hpp>
Public Member Functions | |
Uri () | |
Construct an empty invalid Uri. | |
Uri (const std::string &uri_string) | |
construct a new Davix Uri from a string URL | |
Uri (const Uri &uri) | |
Copy constructor. | |
Uri & | operator= (const Uri &orig) |
assignment operator More... | |
const std::string & | getString () const |
int | getPort () const |
const std::string & | getProtocol () const |
const std::string & | getHost () const |
const std::string & | getPath () const |
const std::string & | getUserInfo () const |
const std::string & | getPathAndQuery () const |
const std::string & | getQuery () const |
StatusCode::Code | getStatus () const |
bool | equal (const Uri &u1) const |
test if two URI are equals More... | |
bool | operator== (const Uri &u2) const |
compare oepration More... | |
Static Public Member Functions | |
static std::string | escapeString (const std::string &str) |
Escape string. More... | |
static std::string | unescapeString (const std::string &str) |
Unescape urI. More... | |
static Uri | fromRelativePath (const Uri &uri, const std::string &relPath) |
create a new Uri from URI and a relative associated path More... | |
Uri parser.
convenience class for uri parsing
bool Davix::Uri::equal | ( | const Uri & | u1 | ) | const |
test if two URI are equals
u1 |
|
static |
Escape string.
str | URL to escape |
create a new Uri from URI and a relative associated path
uri | original URI |
relPath | relative path |
const std::string& Davix::Uri::getHost | ( | ) | const |
get the host name
const std::string& Davix::Uri::getPath | ( | ) | const |
const std::string& Davix::Uri::getPathAndQuery | ( | ) | const |
get a concatenation of the path and the query argument of the URI
int Davix::Uri::getPort | ( | ) | const |
get the port number
const std::string& Davix::Uri::getProtocol | ( | ) | const |
get the protocol scheme
const std::string& Davix::Uri::getQuery | ( | ) | const |
get the query argument part of the uri
StatusCode::Code Davix::Uri::getStatus | ( | ) | const |
Status of the Uri see StatusCode::Code
const std::string& Davix::Uri::getString | ( | ) | const |
get a string representation of the full uri
const std::string& Davix::Uri::getUserInfo | ( | ) | const |
gextract user information from the URI
bool Davix::Uri::operator== | ( | const Uri & | u2 | ) | const |
compare oepration
u2 |
|
static |
Unescape urI.
str | URL to escape |