#include <URLHandler.hpp>
This is based on http://www.ietf.org/rfc/rfc2396.txt
Public Types | |
| typedef Strings::FastString | String |
| String class to use. | |
Public Member Functions | |
| URL | appendRelativePath (String newPath) const |
| Append path from the given path. | |
| String | asURI (const String &defaultScheme="") const |
| Construct a text from this URL. | |
| const String & | getAuthority () const |
| Get the current authority. | |
| const String & | getFragment () const |
| Get the current fragment. | |
| const String & | getPath () const |
| Get the current path. | |
| const String & | getQuery () const |
| Get the current query. | |
| const String & | getScheme () const |
| Get the current scheme. | |
| bool | isValid () |
| Check if this URL is valid. | |
| uint16 | stripPortFromAuthority (uint16 defaultPortValue) |
| Strip port information from authority and return it if known. | |
| URL (const String &_scheme, const String &_authority, const String &_path, const String &_query="", const String &_fragment="") | |
| Construct an URL from its part. | |
| URL (const String &inputURL, const String &defaultScheme="") | |
| Construct an URL from a UTF8 text. | |
| URL () | |
| Default, and invalid constructor. | |
Static Public Member Functions | |
| static String | escapedURI (const String &inputURL) |
| Escape an URL to only allowed chars. | |
Protected Attributes | |
| String | authority |
| The authority, usually called the server. | |
| String | fragment |
| The fragment to reach. | |
| String | path |
| The path to the resource. | |
| String | query |
| The query. | |
| String | scheme |
| The scheme, also called protocol. | |
String class to use.
| Network::URL::URL | ( | ) | [inline] |
Default, and invalid constructor.
Construct an URL from a UTF8 text.
| Network::URL::URL | ( | const String & | _scheme, | |
| const String & | _authority, | |||
| const String & | _path, | |||
| const String & | _query = "", |
|||
| const String & | _fragment = "" | |||
| ) | [inline] |
Construct an URL from its part.
Append path from the given path.
| URL::String Network::URL::escapedURI | ( | const String & | inputURL | ) | [static] |
Escape an URL to only allowed chars.
| const String& Network::URL::getAuthority | ( | ) | const [inline] |
Get the current authority.
| const String& Network::URL::getFragment | ( | ) | const [inline] |
Get the current fragment.
| const String& Network::URL::getPath | ( | ) | const [inline] |
Get the current path.
| const String& Network::URL::getQuery | ( | ) | const [inline] |
Get the current query.
| const String& Network::URL::getScheme | ( | ) | const [inline] |
Get the current scheme.
| bool Network::URL::isValid | ( | ) | [inline] |
Check if this URL is valid.
| uint16 Network::URL::stripPortFromAuthority | ( | uint16 | defaultPortValue | ) | [inline] |
Strip port information from authority and return it if known.
String Network::URL::authority [protected] |
The authority, usually called the server.
String Network::URL::fragment [protected] |
The fragment to reach.
String Network::URL::path [protected] |
The path to the resource.
String Network::URL::query [protected] |
The query.
String Network::URL::scheme [protected] |
The scheme, also called protocol.
