Packagecom.adobe.rtc.util
Classpublic class URLUtil

Stripped down version of mx.utils.URLUtil.



Public Methods
 MethodDefined by
  
URLUtil
  
getFullURL(rootURL:String, url:String):String
[static] Converts a potentially relative URL to a fully-qualified URL.
URLUtil
  
isHttpURL(url:String):Boolean
[static] Determines if the URL uses the HTTP, HTTPS, or RTMP protocol.
URLUtil
Constructor detail
URLUtil()constructor
public function URLUtil()
Method detail
getFullURL()method
public static function getFullURL(rootURL:String, url:String):String

Converts a potentially relative URL to a fully-qualified URL. If the URL is not relative, it is 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 used to resolve the URL specified by the url parameter, if url is relative.
 
url:String — URL to convert.

Returns
String — Fully-qualified URL.
isHttpURL()method 
public static function isHttpURL(url:String):Boolean

Determines if the URL uses the HTTP, HTTPS, or RTMP protocol.

Parameters
url:String — The URL to analyze.

Returns
Booleantrue if the URL starts with "http://", "https://", or "rtmp://".




 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/labs/acrobatcom/com/adobe/rtc/util/URLUtil.html