| Package | system.remoting |
| Class | public class RemotingGatewayUrl |
| Inheritance | RemotingGatewayUrl Object |
| Property | Defined 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 | ||
| Method | Defined 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 | ||
| httpHostName | property |
public var httpHostName:String = httpHostThe name "httpHost" of the member in the flashVars to defines the optional http host.
| parameters | property |
public var parameters:ParametersThe optional Parameters reference to .
| urlName | property |
public var urlName:String = gatewayUrlThe name "member" in the flashVars to defines the url pattern of the factory.
| RemotingGatewayUrl | () | Constructor |
public function RemotingGatewayUrl(parameters:Parameters = null)Creates a new RemotingGatewayUrl instance.
Parametersparameters:Parameters (default = null) — The optional Parameters reference who can contains the gatewayUrl and httpHostName values.
|
| create | () | method |
public function create(url:String = null, httpHost:String = null):StringCreates 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) |
String |