Package | com.adobe.gravity.utility.async |
Class | public class Token |
Inheritance | Token Object |
Implements | IToken |
Language Version: | ActionScript 3.0 |
Product Version: | Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10 |
Runtime Versions: | AIR 1.1, Flash Player 9 |
Success handlers take an arbitrary number of parameters. The number and type of the parameters depend on the API that returns the token; the API documentation will generally indicate what to expect. Fault handlers must take a single parameter of type Error.
Method | Defined By | ||
---|---|---|---|
Token()
Constructor. | Token | ||
Add a handler to be called if the operation fails. | Token | ||
Add a handler to be called if the operation succeeds. | Token | ||
Call all the fault handlers with the provided error object. | Token | ||
Call all the fault handlers with an Error created from the provided ErrorEvent object. | Token | ||
Call all the success handlers with the provided parameters. | Token | ||
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 | ||
Remove a fault handler. | Token | ||
Remove a success handler. | Token | ||
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 |
Token | () | Constructor |
public function Token()
Language Version: | ActionScript 3.0 |
Product Version: | Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10 |
Runtime Versions: | AIR 1.1, Flash Player 9 |
Constructor.
addFaultHandler | () | method |
public function addFaultHandler(handler:Function, weakReference:Boolean = false):void
Language Version: | ActionScript 3.0 |
Product Version: | Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10 |
Runtime Versions: | AIR 1.1, Flash Player 9 |
Add a handler to be called if the operation fails.
Parameters
handler:Function — A function to be called if the operation fails.
| |
weakReference:Boolean (default = false ) — Use a weak reference to hold onto the handler.
|
addSuccessHandler | () | method |
public function addSuccessHandler(handler:Function, weakReference:Boolean = false):void
Language Version: | ActionScript 3.0 |
Product Version: | Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10 |
Runtime Versions: | AIR 1.1, Flash Player 9 |
Add a handler to be called if the operation succeeds.
Parameters
handler:Function — A function to be called if the operation succeeds.
| |
weakReference:Boolean (default = false ) — Use a weak reference to hold onto the handler.
|
callFaultHandlers | () | method |
public function callFaultHandlers(error:Error):void
Language Version: | ActionScript 3.0 |
Product Version: | Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10 |
Runtime Versions: | AIR 1.1, Flash Player 9 |
Call all the fault handlers with the provided error object.
Parameters
error:Error — The error object.
|
callFaultHandlersViaErrorEvent | () | method |
public function callFaultHandlersViaErrorEvent(errorEvent:ErrorEvent):void
Language Version: | ActionScript 3.0 |
Product Version: | Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10 |
Runtime Versions: | AIR 1.1, Flash Player 9 |
Call all the fault handlers with an Error created from the provided ErrorEvent object. This is equivalent to
callFaultHandlers(new Error(errorEvent.text));
Parameters
errorEvent:ErrorEvent — The error event.
|
callSuccessHandlers | () | method |
public function callSuccessHandlers(... params):void
Language Version: | ActionScript 3.0 |
Product Version: | Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10 |
Runtime Versions: | AIR 1.1, Flash Player 9 |
Call all the success handlers with the provided parameters.
Parameters
... params — Zero or more parameters to be passed verbatim to any success handlers that have been added.
|
removeFaultHandler | () | method |
public function removeFaultHandler(handler:Function):void
Language Version: | ActionScript 3.0 |
Product Version: | Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10 |
Runtime Versions: | AIR 1.1, Flash Player 9 |
Remove a fault handler.
Parameters
handler:Function — The handler to be removed.
|
removeSuccessHandler | () | method |
public function removeSuccessHandler(handler:Function):void
Language Version: | ActionScript 3.0 |
Product Version: | Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10 |
Runtime Versions: | AIR 1.1, Flash Player 9 |
Remove a success handler.
Parameters
handler:Function — The handler to remove.
|
Mon Nov 28 2011, 06:48 AM -08:00