Packagech.capi.utils
Classpublic class DomainUtils
InheritanceDomainUtils Inheritance Object

Represents DomainUtils.



Public Methods
 MethodDefined By
  
getApplicationDomain(appDomainCreationPolicy:String):ApplicationDomain
[static] Retrieves a new ApplicationDomain depending of the specified appDomainCreationPolicy.
DomainUtils
  
getSecurityDomain(secDomainPolicy:String):SecurityDomain
[static] Retrieves the SecurityDomain depending of the specified secDomainPolicy.
DomainUtils
Public Constants
 ConstantDefined By
  APPDOMAIN_CHILD : String = child
[static] A new ApplicationDomain will be created as child as the current ApplicationDomain.
DomainUtils
  APPDOMAIN_CREATE : String = create
[static] A new independant ApplicationDomain will be created.
DomainUtils
  APPDOMAIN_CURRENT : String = current
[static] The current ApplicationDomain will be used.
DomainUtils
  APPDOMAIN_NONE : String = none
[static] No ApplicationDomain will be created.
DomainUtils
  SECDOMAIN_CURRENT : String = current
[static] The current SecurityDomain will be used.
DomainUtils
  SECDOMAIN_NONE : String = none
[static] No SecurityDomain will be used.
DomainUtils
Method Detail
getApplicationDomain()method
public static function getApplicationDomain(appDomainCreationPolicy:String):ApplicationDomain

Retrieves a new ApplicationDomain depending of the specified appDomainCreationPolicy.

Parameters

appDomainCreationPolicy:String — The ApplicationDomain creation policy, issued from the constants. Allowed values are APPDOMAIN_NONE, APPDOMAIN_CREATE, APPDOMAIN_CHILD or APPDOMAIN_CURRENT.

Returns
ApplicationDomain — The create ApplicationDomain or null.

Throws
Error If — the appDomainCreationPolicy is invalid.

See also

getSecurityDomain()method 
public static function getSecurityDomain(secDomainPolicy:String):SecurityDomain

Retrieves the SecurityDomain depending of the specified secDomainPolicy.

Parameters

secDomainPolicy:String — The SecurityDomain issued from the constants. Allowed values are SECDOMAIN_CURRENT or SECDOMAIN_NONE.

Returns
SecurityDomain — The SecurityDomain or null.

Throws
Error If — the secDomainPolicy is invalid.

See also

Constant Detail
APPDOMAIN_CHILDConstant
public static const APPDOMAIN_CHILD:String = child

A new ApplicationDomain will be created as child as the current ApplicationDomain.

APPDOMAIN_CREATEConstant 
public static const APPDOMAIN_CREATE:String = create

A new independant ApplicationDomain will be created.

APPDOMAIN_CURRENTConstant 
public static const APPDOMAIN_CURRENT:String = current

The current ApplicationDomain will be used.

APPDOMAIN_NONEConstant 
public static const APPDOMAIN_NONE:String = none

No ApplicationDomain will be created.

SECDOMAIN_CURRENTConstant 
public static const SECDOMAIN_CURRENT:String = current

The current SecurityDomain will be used.

SECDOMAIN_NONEConstant 
public static const SECDOMAIN_NONE:String = none

No SecurityDomain will be used.