Package | com.asfusion.mate.actions.builders |
Class | public class RemoteObjectInvoker |
Inheritance | RemoteObjectInvoker ServiceInvoker AbstractServiceInvoker BaseAction AbstractAction |
Implements | IAction |
RemoteObjectInvoker
tag is used to create a RemoteObject
instance and call
a method on the object created. To use this tag, you need to specify the same attributes you would
when creating a remote object with the RemoteObject
tag. In addition, you need to specify what
method to call. This tag will also accept
all mx.rpc.remoting.RemoteObject tag attributes (with the exception of the "operations" property).
Property | Defined by | ||
---|---|---|---|
arguments : *
The property
arguments allows you to pass an Object or an Array of objects when
calling the function defined in the property method . | RemoteObjectInvoker | ||
channelSet : ChannelSet
Provides access to the ChannelSet used by the service.
| ServiceInvoker | ||
concurrency : String
Value that indicates how to handle multiple calls to the same service.
| RemoteObjectInvoker | ||
debug : Boolean
Whether to show debugging information for its inner-handlerss.
| AbstractServiceInvoker | ||
destination : String
The destination of the service.
| ServiceInvoker | ||
endpoint : String
This property allows the developer to quickly specify an endpoint for a RemoteObject destination without
referring to a services configuration file at compile time or programmatically creating a ChannelSet.
| RemoteObjectInvoker | ||
faultHandlers : Array
A set of inner-handlers to run when the server call returns a fault.
| AbstractServiceInvoker | ||
instance : RemoteObject
If this property is null, a new RemoteObject instance is created on
the
prepare method. | RemoteObjectInvoker | ||
makeObjectsBindable : Boolean
When this value is true, anonymous objects returned are forced to bindable objects.
| ServiceInvoker | ||
method : Object
The
method attribute specifies what function to call on the service instance. | ServiceInvoker | ||
password : Object
Password to supply to
setCredentials method
| ServiceInvoker | ||
properties : ArrayProperties allows you to add properties to the currentInstance . | BaseAction | ||
remotePassword : Object
Password to supply to
setCredentials method
| ServiceInvoker | ||
remoteUsername : Object
Username to supply to
setCredentials method
| ServiceInvoker | ||
requestTimeout : int
Provides access to the request timeout in seconds for sent messages.
| ServiceInvoker | ||
resultHandlers : Array
A set of inner-handlers to run when the server call returns a result.
| AbstractServiceInvoker | ||
showBusyCursor : Boolean
If true, a busy cursor is displayed while a service is executing.
| RemoteObjectInvoker | ||
source : String
Lets you specify a source value on the client; not supported for destinations that use the JavaAdapter.
| RemoteObjectInvoker | ||
username : Object
Username to supply to
setCredentials method
| ServiceInvoker |
Method | Defined by | ||
---|---|---|---|
actionListStartHandler(event:ActionListEvent):void
Handler that will be fired when the first of the innerHandlers starts executing.
| AbstractServiceInvoker | ||
The last method that
trigger calls. | ServiceInvoker | ||
createInnerHandlers(scope:IScope, innerType:String, actionList:Array, innerHandlersClass:Class = null):IActionList
Creates IActionList and sets the properties:
debug, type, listeners, dispatcher and inheritScope in the newly IActionList (inner-handlers).
| AbstractServiceInvoker | ||
The first method that
trigger calls. | RemoteObjectInvoker | ||
Where all the action occurs.
| RemoteObjectInvoker | ||
setProperties(scope:IScope):void
Where all the properties are set into the
currentInstance . | BaseAction |
arguments | property |
arguments:*
[read-write]
The property arguments
allows you to pass an Object or an Array of objects when
calling the function defined in the property method
.
You can use an array to pass multiple arguments or use a simple Object if the
signature of the method
has only one parameter.
The default value is undefined
.
public function get arguments():*
public function set arguments(value:*):void
concurrency | property |
concurrency:String
[read-write]Value that indicates how to handle multiple calls to the same service. The default value is multiple. The following values are permitted:
The default value is multiple
.
public function get concurrency():String
public function set concurrency(value:String):void
endpoint | property |
endpoint:String
[read-write]This property allows the developer to quickly specify an endpoint for a RemoteObject destination without referring to a services configuration file at compile time or programmatically creating a ChannelSet. It also overrides an existing ChannelSet if one has been set for the RemoteObject service.
f the endpoint url starts with "https" a SecureAMFChannel will be used, otherwise an AMFChannel will be used. Two special tokens, {server.name} and {server.port}, can be used in the endpoint url to specify that the channel should use the server name and port that was used to load the SWF.
Note: This property is required when creating AIR applications.
Implementation public function get endpoint():String
public function set endpoint(value:String):void
instance | property |
instance:RemoteObject
[read-write]
If this property is null, a new RemoteObject instance is created on
the prepare
method. Otherwise, this instance will be used.
The class that will be used to create the instance if none is provided is
mx.rpc.remoting.mxml.RemoteObject
The default value is null
.
public function get instance():RemoteObject
public function set instance(value:RemoteObject):void
showBusyCursor | property |
showBusyCursor:Boolean
[read-write]If true, a busy cursor is displayed while a service is executing. The default value is false.
The default value is false
.
public function get showBusyCursor():Boolean
public function set showBusyCursor(value:Boolean):void
source | property |
source:String
[read-write]Lets you specify a source value on the client; not supported for destinations that use the JavaAdapter. This allows you to provide more than one source that can be accessed from a single destination on the server.
Implementation public function get source():String
public function set source(value:String):void
prepare | () | method |
protected override function prepare(scope:IScope):void
The first method that trigger
calls.
Usually, this is where the currentInstance
is created or set if needed.
In this method you can also perform any code that must be done first.
scope:IScope |
run | () | method |
protected override function run(scope:IScope):void
Where all the action occurs. At this moment, the currentInstance
is already instantiated and all the properties are already set.
scope:IScope |