Rcuxx::Url Class Reference
#include <Url.h>
List of all members.
Detailed Description
Parse and store URL elements.
A URL is of the form
http://user:pass@example.com:992/animal/bird?species=seagull#wings
\___/ \________/\_________/\__/\__________/\______________/\____/
| | | | | | |
scheme login hosts port path query anchor/fragment
Member Typedef Documentation
Constructor & Destructor Documentation
Rcuxx::Url::Url |
( |
const std::string & |
url |
) |
[inline] |
Construtor.
- Parameters:
-
References Parse().
Member Function Documentation
Url& Rcuxx::Url::operator= |
( |
const std::string & |
url |
) |
[inline] |
Assignment operator.
- Parameters:
-
| url | String to assign from |
- Returns:
- Parsed object.
References Parse().
void Rcuxx::Url::Print |
( |
|
) |
const |
const std::string& Rcuxx::Url::Raw |
( |
|
) |
const [inline] |
- Returns:
- The URL as give by user
References fUrl.
int Rcuxx::Url::Port |
( |
|
) |
const [inline] |
- Returns:
- Port number (-1 if not specified)
References fPort.
const std::string& Rcuxx::Url::Host |
( |
|
) |
const [inline] |
- Returns:
- Host name
References fHost.
const std::string& Rcuxx::Url::Scheme |
( |
|
) |
const [inline] |
- Returns:
- Scheme (e.g.,
http
, ftp
, or foo
References fScheme.
const std::string& Rcuxx::Url::Path |
( |
|
) |
const [inline] |
- Returns:
- Path part
References fPath.
const std::string& Rcuxx::Url::Query |
( |
|
) |
const [inline] |
- Returns:
- Query part
References fQuery.
const std::string& Rcuxx::Url::Anchor |
( |
|
) |
const [inline] |
- Returns:
- Acnhor part
References fAnchor.
const std::string& Rcuxx::Url::User |
( |
|
) |
const [inline] |
- Returns:
- User name part
References fUser.
const std::string& Rcuxx::Url::Password |
( |
|
) |
const [inline] |
void Rcuxx::Url::SetPort |
( |
int |
p |
) |
[inline] |
- Parameters:
-
| p | Port number (-1 if not specified) |
References fPort.
void Rcuxx::Url::SetHost |
( |
const std::string & |
h |
) |
[inline] |
- Parameters:
-
References fHost.
void Rcuxx::Url::SetScheme |
( |
const std::string & |
s |
) |
[inline] |
- Parameters:
-
| s | Scheme (e.g., http , ftp , or foo |
References fScheme.
void Rcuxx::Url::SetPath |
( |
const std::string & |
p |
) |
[inline] |
- Parameters:
-
References fPath.
void Rcuxx::Url::SetQuery |
( |
const std::string & |
q |
) |
[inline] |
- Parameters:
-
References fQuery.
void Rcuxx::Url::SetAnchor |
( |
const std::string & |
a |
) |
[inline] |
void Rcuxx::Url::SetUser |
( |
const std::string & |
u |
) |
[inline] |
- Parameters:
-
References fUser.
void Rcuxx::Url::SetPassword |
( |
const std::string & |
p |
) |
[inline] |
void Rcuxx::Url::Parse |
( |
const std::string & |
url |
) |
[protected] |
Parse the string url, and store parts.
- Parameters:
-
Referenced by operator=(), and Url().
Member Data Documentation
Original url cached.
Referenced by Raw().
The documentation for this class was generated from the following file: