libmoost
|
This class represents the basic elements that make up a standard uri. More...
#include <uri_elements.hpp>
Public Member Functions | |
uri_elements (uri_scheme const &scheme, std::string const &host) | |
construct a uri elements object | |
uri_elements (uri_scheme const &scheme, std::string const &host, std::string const &path) | |
construct a uri elements object | |
uri_elements (uri_scheme const &scheme, std::string const &host, std::string const &path, uri_params const ¶ms) | |
construct a uri elements object | |
uri_elements (uri_scheme const &scheme, std::string const &host, std::string const &path, uri_params::map_t const &map) | |
construct a uri elements object | |
std::string const & | get_scheme () const |
Get the scheme associated with this uri. | |
std::string const & | get_host () const |
Get the host associated with this uri. | |
std::string const & | get_port () const |
Get the port associated with this uri. | |
std::string const & | get_path () const |
Get the path associated with this uri. | |
std::string const & | get_params () const |
Get the params associated with this uri. | |
Private Member Functions | |
void | encode () |
Private Attributes | |
std::string const | scheme_ |
std::string const | host_ |
std::string const | port_ |
std::string const | path_ |
std::string const | params_ |
This class represents the basic elements that make up a standard uri.
Definition at line 57 of file uri_elements.hpp.
moost::murcl::uri_elements::uri_elements | ( | uri_scheme const & | scheme, |
std::string const & | host | ||
) | [inline] |
construct a uri elements object
scheme | the uri scheme |
host | the uri host |
Definition at line 68 of file uri_elements.hpp.
moost::murcl::uri_elements::uri_elements | ( | uri_scheme const & | scheme, |
std::string const & | host, | ||
std::string const & | path | ||
) | [inline] |
construct a uri elements object
scheme | the uri scheme |
host | the uri host |
path | the uri path |
Definition at line 89 of file uri_elements.hpp.
moost::murcl::uri_elements::uri_elements | ( | uri_scheme const & | scheme, |
std::string const & | host, | ||
std::string const & | path, | ||
uri_params const & | params | ||
) | [inline] |
construct a uri elements object
scheme | the uri scheme |
host | the uri host |
path | the uri path |
params | the uri parameters |
Definition at line 114 of file uri_elements.hpp.
moost::murcl::uri_elements::uri_elements | ( | uri_scheme const & | scheme, |
std::string const & | host, | ||
std::string const & | path, | ||
uri_params::map_t const & | map | ||
) | [inline] |
construct a uri elements object
scheme | the uri scheme |
host | the uri host |
path | the uri path |
map | a map of key/value strings to be converted to url parameters |
Definition at line 141 of file uri_elements.hpp.
void moost::murcl::uri_elements::encode | ( | ) | [inline, private] |
std::string const& moost::murcl::uri_elements::get_host | ( | ) | const [inline] |
Get the host associated with this uri.
Definition at line 173 of file uri_elements.hpp.
std::string const& moost::murcl::uri_elements::get_params | ( | ) | const [inline] |
Get the params associated with this uri.
Definition at line 206 of file uri_elements.hpp.
std::string const& moost::murcl::uri_elements::get_path | ( | ) | const [inline] |
Get the path associated with this uri.
Definition at line 195 of file uri_elements.hpp.
std::string const& moost::murcl::uri_elements::get_port | ( | ) | const [inline] |
Get the port associated with this uri.
Definition at line 184 of file uri_elements.hpp.
std::string const& moost::murcl::uri_elements::get_scheme | ( | ) | const [inline] |
Get the scheme associated with this uri.
Definition at line 162 of file uri_elements.hpp.
std::string const moost::murcl::uri_elements::host_ [private] |
Definition at line 222 of file uri_elements.hpp.
std::string const moost::murcl::uri_elements::params_ [private] |
Definition at line 225 of file uri_elements.hpp.
std::string const moost::murcl::uri_elements::path_ [private] |
Definition at line 224 of file uri_elements.hpp.
std::string const moost::murcl::uri_elements::port_ [private] |
Definition at line 223 of file uri_elements.hpp.
std::string const moost::murcl::uri_elements::scheme_ [private] |
Definition at line 221 of file uri_elements.hpp.