The Url class parses and stores a Uniform Resource Locator, as specified in RFC1738 and RFC1808. More...
Url | ( const QString absUrl ); | |
Url | ( const char* absUrl ); | |
Url | ( const Url* absUrl, const QString relUrl ); | |
static void | encode | ( QString& str ); |
QString | fragment | ( ); |
QString | hostname | ( ); |
QString | method | ( ); |
QString | parameters | ( ); |
QString | password | ( ); |
QString | path | ( ); |
int | port | ( ); |
QString | query | ( ); |
void | setPath | ( QString path ); |
void | setQuery | ( QString query ); |
QString | url | ( ); |
QString | user | ( ); |
void | parseUrl | ( QString url ); |
QString | _fragment; |
QString | _hostname; |
QString | _method; |
QString | _parameters; |
QString | _password; |
QString | _path; |
int | _port; |
QString | _query; |
QString | _user; |
The Url class parses and stores a Uniform Resource Locator, as specified in RFC1738 and RFC1808.
This class can take a partially or fully qualified URL as a string, and parse it into its component parts. It can also resolve a partially qualified URL to a fully qualified URL using a fully qualified "base" URL.Parse a fully qualified URL.
Parse a partially qualified URL, and then resolve it with the given absolute URL.
Return the URL's fragment.
Return the URL's hostname.
Return the URL's method.
Return the URL's parameters.
Return the URL's password.
Return the URL's path.
Return the URL's port.
Return the URL's query.
Set the URL's path.
Set the URL's query.
Return the fully qualified URL as a string.
Return the URL's user name.
Parse a url given as a text string into its component parts, as per the algorithm given in RFC1808. This routine successfully parses all the test cases mentioned in RFC1808. This algorithm works for partially and fully qualified URLs.