Packageorg.restfulx.services
Classpublic class ServiceResponder
ImplementsIFunctionalResponder

Central response manager for RESTful CRUD operations.



Public Properties
 PropertyDefined by
  handler : Function
ServiceResponder
  service : IServiceProvider
The service provider that this responder has been created for
ServiceResponder
Public Methods
 MethodDefined by
  
ServiceResponder(handler:Function, service:IServiceProvider, modelType:String, onSuccess:Object = null, onFailure:Function = null, unmarshallDisconnected:Boolean = false, recursive:Boolean = false)
ServiceResponder
  
fault(error:Object):void
ServiceResponder
  
result(event:Object):void
ServiceResponder
Property detail
handlerproperty
handler:Function  [read-write]Implementation
    public function get handler():Function
    public function set handler(value:Function):void
serviceproperty 
public var service:IServiceProvider

The service provider that this responder has been created for

Constructor detail
ServiceResponder()constructor
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)
Method detail
fault()method
public function fault(error:Object):void

Parameters
error:Object

See also

mx.rpc.IResponder.fault
result()method 
public function result(event:Object):void

Parameters
event:Object

See also

mx.rpc.IResponder.result