Packagecom.degrafa.utilities.external
Classpublic class LoadingLocation

A representation of a loading location specified in terms of a base path and crossdomain policy file to be accessed. To be associated with externally loaded content.



Public Properties
 PropertyDefined by
  basePath : String
LoadingLocation
  id : String
The identifier used by document to refer to this object.
LoadingLocation
  name : String
[read-only] The name that refers to this object.
LoadingLocation
  policyFile : String
LoadingLocation
  requestedPolicyFile : Boolean
[read-only]
LoadingLocation
Public Methods
 MethodDefined by
  
LoadingLocation(basepath:String = null, policyFile:String = null)
LoadingLocation
  
extractLocation(url:String = null):Object
[static] static utility function to extract location elements from a url or the location of the flex application
LoadingLocation
  
isAbsoluteURL(val:String):Boolean
[static] a simple test to see if the url string is absolute or relative
LoadingLocation
  
request the policyFile associated with this location, if it has not already been requested
LoadingLocation
  
toString():String
LoadingLocation
Property detail
basePathproperty
basePath:String  [read-write]Implementation
    public function get basePath():String
    public function set basePath(value:String):void
idproperty 
id:String  [read-write]

The identifier used by document to refer to this object.

Implementation
    public function get id():String
    public function set id(value:String):void
nameproperty 
name:String  [read-only]

The name that refers to this object.

Implementation
    public function get name():String
policyFileproperty 
policyFile:String  [read-write]Implementation
    public function get policyFile():String
    public function set policyFile(value:String):void
requestedPolicyFileproperty 
requestedPolicyFile:Boolean  [read-only]Implementation
    public function get requestedPolicyFile():Boolean
Constructor detail
LoadingLocation()constructor
public function LoadingLocation(basepath:String = null, policyFile:String = null)Parameters
basepath:String (default = null)
 
policyFile:String (default = null)
Method detail
extractLocation()method
public static function extractLocation(url:String = null):Object

static utility function to extract location elements from a url or the location of the flex application

Parameters
url:String (default = null)

Returns
Object — an object with protocol, domain, and basepath properties
isAbsoluteURL()method 
public static function isAbsoluteURL(val:String):Boolean

a simple test to see if the url string is absolute or relative

Parameters
val:String

Returns
Boolean — boolean value indicating whether this url is absolute or not
requestPolicyFile()method 
public function requestPolicyFile():void

request the policyFile associated with this location, if it has not already been requested

toString()method 
public function toString():String

Returns
String