Packagesystem.remoting
Classpublic class RemotingGatewayUrl
InheritanceRemotingGatewayUrl Inheritance Object

This factory build the gateway url of the services of this application.



Public Properties
 PropertyDefined By
  httpHostName : String = httpHost
The name "httpHost" of the member in the flashVars to defines the optional http host.
RemotingGatewayUrl
  parameters : Parameters
The optional Parameters reference to .
RemotingGatewayUrl
  urlName : String = gatewayUrl
The name "member" in the flashVars to defines the url pattern of the factory.
RemotingGatewayUrl
Public Methods
 MethodDefined By
  
RemotingGatewayUrl(parameters:Parameters = null)
Creates a new RemotingGatewayUrl instance.
RemotingGatewayUrl
  
create(url:String = null, httpHost:String = null):String
Creates the url with the specified parameters.
RemotingGatewayUrl
Property Detail
httpHostNameproperty
public var httpHostName:String = httpHost

The name "httpHost" of the member in the flashVars to defines the optional http host.

parametersproperty 
public var parameters:Parameters

The optional Parameters reference to .

urlNameproperty 
public var urlName:String = gatewayUrl

The name "member" in the flashVars to defines the url pattern of the factory.

Constructor Detail
RemotingGatewayUrl()Constructor
public function RemotingGatewayUrl(parameters:Parameters = null)

Creates a new RemotingGatewayUrl instance.

Parameters
parameters:Parameters (default = null) — The optional Parameters reference who can contains the gatewayUrl and httpHostName values.
Method Detail
create()method
public function create(url:String = null, httpHost:String = null):String

Creates the url with the specified parameters.

Example :

         import vegas.remoting.RemotingGatewayUrl ;
         import system.ioc.Parameters ;
         
         var parameters:Parameters = new Parameters( root.loaderInfo.parameters ) ;
         
         var factory:RemotingGatewayUrl = new RemotingGatewayUrl( parameters ) ; 
         
         var url:String = factory.create("http://{0}/php/gateway.php", "localhost" ) ;
         
         trace(url) ; // http://localhost/php/gateway.php
         

Parameters

url:String (default = null)
 
httpHost:String (default = null)

Returns
String