Packagelc.core
Classpublic class DefaultResponder
InheritanceDefaultResponder Inheritance Object
Implements IResponder

The DefaultResponder class is a simple implementation of IResponder interface that allows one to specify a result and fault handler function.



Public Properties
 PropertyDefined By
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
 Inheritedprototype : Object
[static] A reference to the prototype object of a class or function object.
Object
Public Methods
 MethodDefined By
  
DefaultResponder(resultHandler:Function, faultHandler:Function)
Constructor.
DefaultResponder
  
fault(info:Object):void
This method is called by a service when an error has been received.
DefaultResponder
 Inherited
Indicates whether an object has a specified property defined.
Object
 Inherited
Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter.
Object
 Inherited
Indicates whether the specified property exists and is enumerable.
Object
  
This method is called by a service when the return value has been received.
DefaultResponder
 Inherited
Sets the availability of a dynamic property for loop operations.
Object
 Inherited
Returns the string representation of the specified object.
Object
 Inherited
Returns the primitive value of the specified object.
Object
Constructor Detail
DefaultResponder()Constructor
public function DefaultResponder(resultHandler:Function, faultHandler:Function)

Constructor.

Parameters
resultHandler:Function — Specifies a function that will be called when the asynchronous call successfully completes.
 
faultHandler:Function — Specifies a function that will be called when the asynchronous call fails.
Method Detail
fault()method
public function fault(info:Object):void

This method is called by a service when an error has been received. While info is typed as Object it is often (but not always) an mx.rpc.events.FaultEvent.

Parameters

info:Object

result()method 
public function result(data:Object):void

This method is called by a service when the return value has been received. While data is typed as Object, it is often (but not always) an mx.rpc.events.ResultEvent.

Parameters

data:Object





 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/livecycle/es/sdkHelp/common/langref/lc/core/DefaultResponder.html