Packagegs.remoting
Classpublic class RemotingService

The RemotingService class is a simple wrapper around sending remoting calls to the same gateway and endpoint.

This class spawns RemotingCall instances internally.

See also

gs.remoting.RemotingCall


Public Methods
 MethodDefined by
  
RemotingService(_gateway:String, _endpoint:String, _timeout:int = 3000, _retries:int = 1, _objectEncoding:int = 3)
Constructor for RemotingService instances.
RemotingService
  
dispose():void
Dispose of this remoting service.
RemotingService
  
get(id:String):RemotingService
[static] Get a remoting service.
RemotingService
  
send(method:String, callProps:Object):RemotingCall
Send a method call.
RemotingService
  
set(id:String, rs:RemotingService):void
[static] Save a remoting service.
RemotingService
  
setCredentials(_user:String, _pass:String):void
Set authentication credentials.
RemotingService
  
unset(id:String):void
[static] Unset (delete) a remoting service.
RemotingService
Constructor detail
RemotingService()constructor
public function RemotingService(_gateway:String, _endpoint:String, _timeout:int = 3000, _retries:int = 1, _objectEncoding:int = 3)

Constructor for RemotingService instances.

Parameters
_gateway:String — The remoting gateway.
 
_endpoint:String — The service endpoint.
 
_timeout:int (default = 3000) — The time to allow each call.
 
_retries:int (default = 1) — The number of retries to allow.
 
_objectEncoding:int (default = 3) — The amf object encoding.
Method detail
dispose()method
public function dispose():void

Dispose of this remoting service.

get()method 
public static function get(id:String):RemotingService

Get a remoting service.

Parameters
id:String — The remoting service id.

Returns
RemotingService
send()method 
public function send(method:String, callProps:Object):RemotingCall

Send a method call.

The callprops object supports these properties:

Parameters
method:String — The method to call.
 
callProps:Object — The call properties used for the remoting call.

Returns
RemotingCall
set()method 
public static function set(id:String, rs:RemotingService):void

Save a remoting service.

Parameters
id:String — The remoting service id.
 
rs:RemotingService — The remoting service.
setCredentials()method 
public function setCredentials(_user:String, _pass:String):void

Set authentication credentials.

Parameters
_user:String — The user id.
 
_pass:String — The password.
unset()method 
public static function unset(id:String):void

Unset (delete) a remoting service.

Parameters
id:String — The remoting service id.