Packagesystem.remoting
Classpublic class RemotingConnections
InheritanceRemotingConnections Inheritance Object

The collection of all remoting connections registered with a specific gateway url.



Public Properties
 PropertyDefined By
  numConnections : uint
[read-only] Indicates the number of connections registered in the collection.
RemotingConnections
Public Methods
 MethodDefined By
  
Creates a new RemotingCollector instance.
RemotingConnections
  
addConnection(gatewayUrl:String, connection:RemotingConnection):Boolean
Adds a new RemotingConnection object with a single gateway url.
RemotingConnections
  
containsConnection(gatewayUrl:String):Boolean
Indicates if the collector contains the specific gatewayUrl.
RemotingConnections
  
Creates the ObjectResource object with the specified generic object.
RemotingConnections
  
removeConnection(gatewayUrl:String = null):Boolean
Removes the specific connection with the passed-in gateway url or all connections if the passed-in argument is null or empty.
RemotingConnections
Property Detail
numConnectionsproperty
numConnections:uint  [read-only]

Indicates the number of connections registered in the collection.


Implementation
    public function get numConnections():uint
Constructor Detail
RemotingConnections()Constructor
public function RemotingConnections()

Creates a new RemotingCollector instance.

Method Detail
addConnection()method
public function addConnection(gatewayUrl:String, connection:RemotingConnection):Boolean

Adds a new RemotingConnection object with a single gateway url. If the single gateway url is already registered in the collector, the method returns false.

Parameters

gatewayUrl:String
 
connection:RemotingConnection

Returns
Booleantrue if the connection can be registered with the single specific gateway's url.
containsConnection()method 
public function containsConnection(gatewayUrl:String):Boolean

Indicates if the collector contains the specific gatewayUrl.

Parameters

gatewayUrl:String

Returns
Booleantrue if the specific gatewayUrl is already registered.
getConnection()method 
public function getConnection(gatewayUrl:String):RemotingConnection

Creates the ObjectResource object with the specified generic object.

Parameters

gatewayUrl:String — The object definition to create an ObjectResource instance.

Returns
RemotingConnection
removeConnection()method 
public function removeConnection(gatewayUrl:String = null):Boolean

Removes the specific connection with the passed-in gateway url or all connections if the passed-in argument is null or empty.

Parameters

gatewayUrl:String (default = null)

Returns
Booleantrue If the Object resource is removed.