|
Aegis
4.25.D505
|
#include <url.h>
Public Member Functions | |
| virtual | ~url () |
| url (const nstring &s) | |
| url (const char *s) | |
| url (const url &) | |
| url & | operator= (const url &) |
| void | split (const char *s) |
| bool | is_a_file () const |
| nstring | get_path () const |
| void | set_path_if_empty (const nstring &dflt) |
| void | set_query_if_empty (const nstring &dflt) |
| nstring | reassemble (bool exclude_userpass=false) const |
| void | set_host_part_from (const url &arg) |
| nstring | get_protocol () const |
| nstring | get_userpass () const |
| nstring | get_hostname () const |
| int | get_port () const |
Private Member Functions | |
| url () | |
Private Attributes | |
| nstring | protocol |
| nstring | userpass |
| nstring | hostname |
| int | port |
| nstring | path |
| nstring | query |
| nstring | anchor_name |
The url class is used to represent a uniform resource locator (URL).
| virtual url::~url | ( | ) | [virtual] |
The destructor.
The constructor.
| s | The string to be broken up to fill out the component pieces. |
| url::url | ( | const char * | s | ) |
The constructor.
| s | The string to be broken up to fill out the component pieces. |
| url::url | ( | ) | [private] |
The default constructor. Do not use.
| nstring url::get_hostname | ( | ) | const [inline] |
| nstring url::get_path | ( | ) | const |
The get_path method is used to extract the path part of a file URL. The behaviour is undefined if is_a_file is false.
| int url::get_port | ( | ) | const [inline] |
| nstring url::get_protocol | ( | ) | const [inline] |
| nstring url::get_userpass | ( | ) | const [inline] |
| bool url::is_a_file | ( | ) | const |
The is_a_file method is used to determine if the URL is a simple file URL.
| nstring url::reassemble | ( | bool | exclude_userpass = false | ) | const |
The reassemble method is used to reassemble the URL into a string representation.
| exclude_userpass | Set it to true if you need to exclude userpass from the result URL. Default to false. |
| void url::set_host_part_from | ( | const url & | arg | ) |
The set_host_part_from method is used to set the host part (and protocol, and port) from the given argument.
| arg | The URL to take the host part from. |
| void url::set_path_if_empty | ( | const nstring & | dflt | ) |
The set_path_if_empty method is used to set the URL's path to the given default if it is not set already.
| void url::set_query_if_empty | ( | const nstring & | dflt | ) |
The set_query_if_empty method is used to set the URL's query to the given default if it is not set already.
| void url::split | ( | const char * | s | ) |
The split method is used to replace the URL's contents with the given string, once it has been split into its component parts.
| s | The string to be disassembled. |
nstring url::anchor_name [private] |
nstring url::hostname [private] |
int url::port [private] |
nstring url::protocol [private] |
nstring url::query [private] |
nstring url::userpass [private] |
1.7.6.1