Central response manager for RESTful CRUD operations.
handler:Function
[read-write]Implementation
public function get handler():Function
public function set handler(value:Function):void
public var service:IServiceProvider
The service provider that this responder has been created for
public function ServiceResponder(handler:Function, service:IServiceProvider, modelType:String, onSuccess:Object = null, onFailure:Function = null, unmarshallDisconnected:Boolean = false, recursive:Boolean = false)
Parameters
| handler:Function — function to call with the unmarshalled result
|
|
| service:IServiceProvider — IServiceProvider instance that we are dealing with
|
|
| modelType:String — keeps track of what model we are waiting the response for
|
|
| onSuccess:Object (default = null ) — optional user callback function or IResponder to call when
everything has been uccessfullyprocessed
|
|
| onFailure:Function (default = null )
|
|
| unmarshallDisconnected:Boolean (default = false ) — indicates if this call is recursive and should be handled recursively by
underlying service provider and cache controller
|
|
| recursive:Boolean (default = false )
|
public function fault(error:Object):void
Parameters
See also
mx.rpc.IResponder.fault
public function result(event:Object):void
Parameters
See also
mx.rpc.IResponder.result