UrlUtility Class
Class com.probertson.utils.UrlUtility
Inheritance
>
UrlUtility
Utility class with methods for manipulating urls.
| Method Summary |
|---|
| static String | Returns the protocol of the URL of the current .swf file. |
| static String | Converts a url to a full url including protocol |
| static Boolean | Checks whether the passed url already has the http(s):// prefix |
getHostProtocol
public static function getHostProtocol():String
Returns the protocol of the URL of the current .swf file.
Returns:
The protocol of the current .swf file
getHttpUrl
public static function getHttpUrl(url:String):String
Converts a url to a full url including protocol
Parameters:
Returns:
The url with the http(s):// protocol prepended, if it wasn't there already
isHttpUrl
public static function isHttpUrl(url:String):Boolean
Checks whether the passed url already has the http(s):// prefix
Parameters:
Returns:
whether or not the passed url has the http(s):// prefix
Documentation generated by BLDoc Community Edition from B-Line Express.