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 
 getHttpUrl(url:String)
Converts a url to a full url including protocol
 static Boolean 
 isHttpUrl(url:String)
Checks whether the passed url already has the http(s):// prefix
Method Detail
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:
url
The url to modify
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:
url
The url to be checked
Returns:
whether or not the passed url has the http(s):// prefix



Documentation generated by BLDoc Community Edition from B-Line Express.