The URLUtils class contains utility methods for
working with urls.
public static function getFullURL(rootURL:String, url:String):String
Converts a potentially relative URL to a full qualified URL.
If the URL is not relative, it is just returned as is. If the URL starts
with a slash, the host and port from the root URL are prepended.
Otherwise, the host, port, and path are prepended.
Parameters
| rootURL:String |
| |
| url:String |
Returns
public static function getPort(url:String):int
Get the port number.
Parameters
Returns
public static function getProtocol(url:String):String
Get the protocol from a url.
Parameters
Returns
public static function getServerName(url:String):String
Get the server name out of a url.
Parameters
Returns
public static function getServerNameWithPort(url:String):String
Get the server name and port from a url.
Parameters
Returns
public static function isHTTP(url:String):Boolean
Whether or not a url is http.
Parameters
Returns
public static function isHTTPS(url:String):Boolean
Whether or not the url is https.
Parameters
Returns