Package | com.adobe.livecycle.rca.service |
Class | public class DefaultResponder |
Inheritance | DefaultResponder Object |
Implements | IResponder |
Deprecated since Review, Commenting, and Approval 10New Review, Commenting, and Approval APIs dont use a default responder.
Language Version: | ActionScript 3.0 |
Product Version: | Review, Commenting, and Approval Building Block 9.5 |
Runtime Versions: | Flash Player 9, Flash Player 10, AIR (unsupported) |
IResponder
and allows a result and fault handler to be defined. Use this class
instead of defining these functions everywhere an asynchronous call is made.
Public Properties
Public Methods
Method | Defined By | ||
---|---|---|---|
Constructs a DefaultResponder based on the specified result and fault handlers. | DefaultResponder | ||
This method is called by a service when an error has been received. | DefaultResponder | ||
Indicates whether an object has a specified property defined. | Object | ||
Indicates whether an instance of the Object class is in the prototype chain of the object specified
as the parameter. | Object | ||
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 | ||
Sets the availability of a dynamic property for loop operations. | Object | ||
Returns the string representation of this object, formatted according to locale-specific conventions. | Object | ||
Returns the string representation of the specified object. | Object | ||
Returns the primitive value of the specified object. | Object |
Constructor Detail
DefaultResponder | () | Constructor |
public function DefaultResponder(resultHandler:Function, faultHandler:Function)
Language Version: | ActionScript 3.0 |
Product Version: | Review, Commenting, and Approval Building Block 9.5 |
Runtime Versions: | Flash Player 9, Flash Player 10, AIR (unsupported) |
Constructs a DefaultResponder
based on the specified result and fault handlers.
resultHandler:Function — Optional function to call when the asynchronous operation is successful.
| |
faultHandler:Function — Optional function to call when the asynchronous operation fails.
|
Method Detail
fault | () | method |
public function fault(info:Object):void
Language Version: | ActionScript 3.0 |
Product Version: | Review, Commenting, and Approval Building Block 9.5 |
Runtime Versions: | Flash Player 9, Flash Player 10, AIR (unsupported) |
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
Language Version: | ActionScript 3.0 |
Product Version: | Review, Commenting, and Approval Building Block 9.5 |
Runtime Versions: | Flash Player 9, Flash Player 10, AIR (unsupported) |
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 |
Mon Nov 28 2011, 06:48 AM -08:00