#include <URIComponents.h>
Public Member Functions | |
CURIComponents::CURIComponents () | |
Default constructor. | |
CURIComponents::CURIComponents (const char *uriString, std::string::size_type uriStringLen) | |
Constructor which parses the passed in uri. | |
CURIComponents::CURIComponents (const std::string &uriString) | |
Constructor which parses the passed in uri. | |
void | parse (const char *uriString, std::string::size_type uriStringLen) |
Parse the passed in uri. | |
void | parse (const std::string &uriString) |
Parse the passed in uri. | |
std::string | make () const |
Reassemble the uri components to make a complete URI. | |
void | resolve (const CURIComponents &base) |
Resolve this URI relative to another, according to RFC2396. | |
void | resolve (const char *base, const std::string::size_type baseLen) |
Resolve this URI relative to another. | |
void | resolve (const std::string &base) |
Resolve this URI relative to another. | |
void | reset () |
Reset the object to the default state. | |
const std::string & | getScheme () const |
Get the scheme component. | |
bool | isSchemeDefined () const |
See if the scheme component is defined. | |
void | setScheme (const char *scheme) |
Set the scheme component. | |
void | setScheme (const std::string &scheme) |
Set the scheme component. | |
const std::string & | getAuthority () const |
Get the authority component. | |
bool | isAuthorityDefined () const |
See if the authority component is defined. | |
void | setAuthority (const char *authority) |
Set the authority component. | |
void | setAuthority (const std::string &authority) |
Set the authority component. | |
const std::string & | getPath () const |
Get the path component. | |
void | setPath (const char *path) |
Set the path component. | |
void | setPath (const std::string &path) |
Set the path component. | |
const std::string & | getQuery () const |
Get function to get the query component. | |
bool | isQueryDefined () const |
See if the query component is defined. | |
void | setQuery (const char *query) |
Set the query component. | |
void | setQuery (const std::string &query) |
Set the query component. | |
const std::string & | getFragment () const |
Get the fragment component. | |
bool | isFragmentDefined () const |
See if the fragment component is defined. | |
void | setFragment (const char *fragment) |
Set the fragment component. | |
void | setFragment (const std::string &fragment) |
Set the fragment component. | |
unsigned int | getDefined () const |
Get the defined components mask. | |
void | setDefined (unsigned int defined) |
Set the defined components mask. | |
Static Public Member Functions | |
std::string | resolve (const char *relative, std::string::size_type relativeLen, const char *base, std::string::size_type baseLen) |
Resolve the one URI relative to another. | |
std::string | resolve (const std::string &relative, const std::string &base) |
Resolve the one URI relative to another. | |
Static Public Attributes | |
const int | d_scheme = 1 |
const int | d_authority = 2 |
const int | d_query = 4 |
const int | d_fragment = 8 |
|
Constructor which parses the passed in uri.
|
|
Constructor which parses the passed in uri.
|
|
Get the defined components mask.
|
|
See if the authority component is defined.
|
|
See if the fragment component is defined.
|
|
See if the query component is defined.
|
|
See if the scheme component is defined.
|
|
Reassemble the uri components to make a complete URI.
|
|
Parse the passed in uri.
|
|
Parse the passed in uri.
|
|
Resolve the one URI relative to another. The URI string to resolve The base URI string |
|
Resolve the one URI relative to another. The URI string to resolve The lengh of the relative URI string The base URI string The length of the base URI string |
|
Resolve this URI relative to another.
|
|
Resolve this URI relative to another.
|
|
Resolve this URI relative to another, according to RFC2396.
|
|
Set the authority component. Also sets the authority defined flag. |
|
Set the authority component. Also sets the authority defined flag. |
|
Set the defined components mask.
|
|
Set the fragment component. Also sets the fragment defined flag. |
|
Set the fragment component. Also sets the fragment defined flag. |
|
Set the path component.
|
|
Set the path component.
|
|
Set the query component. Also sets the query defined flag. |
|
Set the query component. Also sets the query defined flag. |
|
Set the scheme component. Also sets the scheme defined flag. |
|
Set the scheme component. Also sets the scheme defined flag. |