PowerUI.URL Class Reference

Detailed Description

The URL web API.

Inheritance diagram for PowerUI.URL:
Dom.Location

Public Member Functions

 URL (string value)
 
 URL (string value, string baseURI)
 
 URL (string value, URL baseURI)
 
- Public Member Functions inherited from Dom.Location
 Location (string url)
 Creates a new filepath from the given url. More...
 
 Location (string url, Location relativeTo)
 Creates a new filepath from the given url. More...
 
void reload ()
 Reloads the current URL. More...
 
void assign (string url)
 Assign (go to) the given URL. More...
 
void assign (string url, bool addHistory)
 Assign (go to) the given URL. More...
 
void replace (string url)
 Replaces the current URL with the given one. The same as assign in PowerUI. More...
 
override string ToString ()
 Gets the full path as a string. More...
 
FileProtocol GetProtocol ()
 Gets the file protocol for this location. Default is resources://. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from Dom.Location
static void LoadUrlString (string getString, Dictionary< string, string > set)
 Loads a set of parameters from a typical URL formatted string. E.g. hello=1&hi=2. Loads into the given set - it will overwrite any existing values. More...
 
static string ToPunycode (string host)
 Converts a host to punycode. More...
 
static string FromPunycode (string host)
 Converts punycode back to unicode. More...
 
- Public Attributes inherited from Dom.Location
string RawUrl
 The raw Url/Path More...
 
string Protocol
 The protocol to use when accessing this file. More...
 
string[] Segments
 The pieces of the path split up by /. More...
 
string RelativeTo
 The raw Url that this path is relative to. More...
 
string Hash
 The hash section of the URL, if there is one. Separated here because it should not be sent to the server. More...
 
Document document
 The parent document that this location is used by, if any. More...
 
string Query
 The ?queryString if there is one. More...
 
string authorization
 Auth string alongside the hostname. 'user:pass' More...
 
- Properties inherited from Dom.Location
bool hasHostname [get]
 True if this path has a hostname. More...
 
string absoluteNoHash [get]
 This path as its resolved absolute form, without the hash (if there is one). More...
 
string absolute [get]
 This path as its resolved absolute form, including the hash. More...
 
string[] authParts [get]
 The authorization string split by colon. More...
 
string username [get, set]
 Username. More...
 
string password [get, set]
 Password. More...
 
string Filename [get]
 Gets the filename without the filetype. More...
 
string File [get, set]
 Gets the full filename with the type included. More...
 
string Filetype [get]
 Gets the type of file this path points to. More...
 
string Directory [get]
 Gets the full directory path this file is in. More...
 
string Path [get]
 Gets the url of this file without the protocol. More...
 
string host [get, set]
 The host name of this path. More...
 
string hostname [get, set]
 The hostname with no port number. More...
 
string port [get, set]
 The port number, if there is one. More...
 
string href [get, set]
 The path, as it was declared. More...
 
string origin [get]
 The hostname combined with the protocol. More...
 
string protocol [get, set]
 This locations protocol, including the trailing colon (":"). More...
 
string hash [get, set]
 The hash section of the URL, if there is one. More...
 
string pathname [get, set]
 Gets everything between host and the search string. More...
 
string file [get]
 The file without a query string. More...
 
Dictionary< string, string > searchParams [get]
 The search parameters in a parsed set. More...
 
string relative [get]
 This location relative to host. More...
 
string search [get, set]
 Gets the query string, if there is one. More...
 
bool web [get]
 Is this a web location? More...
 
static
System.Globalization.IdnMapping 
PunyMapper [get]
 Used to map punycode domains. More...
 
FileProtocol Handler [get]
 The protocol which will handle this URL. More...
 
HtmlDocument htmlDocument [get]
 The HTML document that this path belongs to, if any. More...
 
bool fullAccess [get]
 Does this location have full access to the game? Depends on the protocol. E.g. http does not. More...
 
PowerUI.Http.CookieJar CookieJar [get]
 Gets the cookie jar for this path. More...
 

Constructor & Destructor Documentation

PowerUI.URL.URL ( string  value)
inline
PowerUI.URL.URL ( string  value,
string  baseURI 
)
inline
PowerUI.URL.URL ( string  value,
URL  baseURI 
)
inline