Packagesystem.remoting
Classpublic class RemotingServiceListener
InheritanceRemotingServiceListener Inheritance Object
Implements IRemotingServiceListener

The basic concrete implementation of the IRemotingServiceListener interface.



Public Properties
 PropertyDefined By
  verbose : Boolean
Switch the verbose mode of this listener.
RemotingServiceListener
Public Methods
 MethodDefined By
  
RemotingServiceListener(service:* = null, verbose:Boolean = true)
Creates a new RemotingServiceListener instance.
RemotingServiceListener
  
error(error:*, service:RemotingService):void
Invoked when the service notify an error.
RemotingServiceListener
  
fault(fault:*, service:RemotingService):void
Invoked when the service notify a fault.
RemotingServiceListener
  
finish(service:RemotingService):void
Invoked when the service process is finished.
RemotingServiceListener
  
Registers the specific remoting service.
RemotingServiceListener
  
result(result:*, service:RemotingService):void
Invoked when the service notify a success.
RemotingServiceListener
  
start(service:RemotingService):void
Invoked when the service process is started.
RemotingServiceListener
  
timeout(service:RemotingService):void
Invoked when the service notify a timeout.
RemotingServiceListener
  
Unregister the service register in this listener.
RemotingServiceListener
Property Detail
verboseproperty
public var verbose:Boolean

Switch the verbose mode of this listener.

Constructor Detail
RemotingServiceListener()Constructor
public function RemotingServiceListener(service:* = null, verbose:Boolean = true)

Creates a new RemotingServiceListener instance.

Parameters
service:* (default = null) — An optional RemotingService reference or an Array of RemotingService objects to be registered.
 
verbose:Boolean (default = true) — The optional verbose flag to change the mode of this listener.
Method Detail
error()method
public function error(error:*, service:RemotingService):void

Invoked when the service notify an error.

Parameters

error:*
 
service:RemotingService

fault()method 
public function fault(fault:*, service:RemotingService):void

Invoked when the service notify a fault.

Parameters

fault:*
 
service:RemotingService

finish()method 
public function finish(service:RemotingService):void

Invoked when the service process is finished.

Parameters

service:RemotingService

registerService()method 
public function registerService(service:RemotingService):Boolean

Registers the specific remoting service.

Parameters

service:RemotingService

Returns
Boolean — True if the service is registered.
result()method 
public function result(result:*, service:RemotingService):void

Invoked when the service notify a success.

Parameters

result:*
 
service:RemotingService

start()method 
public function start(service:RemotingService):void

Invoked when the service process is started.

Parameters

service:RemotingService

timeout()method 
public function timeout(service:RemotingService):void

Invoked when the service notify a timeout.

Parameters

service:RemotingService

unregisterService()method 
public function unregisterService(service:RemotingService):Boolean

Unregister the service register in this listener.

Parameters

service:RemotingService

Returns
Boolean — True if the unregister is success.