Packageorg.granite.tide
Classpublic class TideResponder
ImplementsITideMergeResponder

TideResponder defines a simple responder for remote calls It allows to keep a token object between the call and the result/fault handler It also allows to add many result/fault handlers that will all be triggered by the origin call



Public Properties
 PropertyDefined by
  mergeResultWith : Object
[read-only]
TideResponder
Public Methods
 MethodDefined by
  
TideResponder(resultHandler:Function, faultHandler:Function, token:Object = null, mergeWith:Object = null)
TideResponder
  
addHandlers(resultHandler:Function = null, faultHandler:Function = null):void
Add result/fault handlers
TideResponder
  
fault(event:TideFaultEvent):void
Fault handler method
TideResponder
  
result(event:TideResultEvent):void
Result handler method
TideResponder
Property detail
mergeResultWithproperty
mergeResultWith:Object  [read-only]Implementation
    public function get mergeResultWith():Object
Constructor detail
TideResponder()constructor
public function TideResponder(resultHandler:Function, faultHandler:Function, token:Object = null, mergeWith:Object = null)Parameters
resultHandler:Function
 
faultHandler:Function
 
token:Object (default = null)
 
mergeWith:Object (default = null)
Method detail
addHandlers()method
public function addHandlers(resultHandler:Function = null, faultHandler:Function = null):void

Add result/fault handlers

Parameters
resultHandler:Function (default = null) — a result handler method
 
faultHandler:Function (default = null) — a fault handler method
fault()method 
public function fault(event:TideFaultEvent):void

Fault handler method

Parameters
event:TideFaultEvent — fault event
result()method 
public function result(event:TideResultEvent):void

Result handler method

Parameters
event:TideResultEvent — result event