| Package | gs.remoting |
| Class | public class RemotingService |
This class spawns RemotingCall instances internally.
See also
| Method | Defined 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 | ||
| 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.
|
| dispose | () | method |
public function dispose():voidDispose of this remoting service.
| get | () | method |
public static function get(id:String):RemotingServiceGet a remoting service.
Parametersid:String — The remoting service id.
|
RemotingService |
| send | () | method |
public function send(method:String, callProps:Object):RemotingCallSend a method call.
The callprops object supports these properties:
method:String — The method to call.
|
|
callProps:Object — The call properties used for the remoting call.
|
RemotingCall |
| set | () | method |
public static function set(id:String, rs:RemotingService):voidSave a remoting service.
Parametersid:String — The remoting service id.
|
|
rs:RemotingService — The remoting service.
|
| setCredentials | () | method |
public function setCredentials(_user:String, _pass:String):voidSet authentication credentials.
Parameters_user:String — The user id.
|
|
_pass:String — The password.
|
| unset | () | method |
public static function unset(id:String):voidUnset (delete) a remoting service.
Parametersid:String — The remoting service id.
|