Packagecom.asfusion.mate.actions.builders
Classpublic class ServiceInvoker
InheritanceServiceInvoker Inheritance AbstractServiceInvoker Inheritance BaseAction Inheritance AbstractAction
SubclassesHTTPServiceInvoker, RemoteObjectInvoker, WebServiceInvoker

ServiceInvoker is the base class for the following service actions:

See also

com.asfusion.mate.actions.builders.RemoteObjectInvoker
com.asfusion.mate.actions.builders.HTTPServiceInvoker
com.asfusion.mate.actions.builders.WebServiceInvoker


Public Properties
 PropertyDefined by
  channelSet : ChannelSet
Provides access to the ChannelSet used by the service.
ServiceInvoker
 Inheriteddebug : Boolean
Whether to show debugging information for its inner-handlerss.
AbstractServiceInvoker
  destination : String
The destination of the service.
ServiceInvoker
 InheritedfaultHandlers : Array
A set of inner-handlers to run when the server call returns a fault.
AbstractServiceInvoker
  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
 Inheritedproperties : Array
Properties 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
 InheritedresultHandlers : Array
A set of inner-handlers to run when the server call returns a result.
AbstractServiceInvoker
  username : Object
Username to supply to setCredentials method
ServiceInvoker
Protected Properties
 PropertyDefined by
 InheritedautoUnregistration : Boolean = true
When auto unregistration is true, all inner handlers will be unregistered after the first inner handlers fires.
AbstractServiceInvoker
 InheritedcurrentIndex : int = 0
Index used to store groups of inner handlers.
AbstractServiceInvoker
 InheritedcurrentInstance : * = null
The currentInstance is the Object that this class will use and modify to do its work.
AbstractAction
 Inheriteddocument : Object
A reference to the document object associated with the IActionList that contains this action item.
AbstractAction
 InheritedinnerHandlersClass : Class
Class that is used as a template to create the inner-handlers
AbstractServiceInvoker
 InheritedinnerHandlersDispatcher : IEventDispatcher
Dispatcher that will trigger the inner-handlers execution by dispatching events (ie: ResultEvent or FaultEvent).
AbstractServiceInvoker
 InheritedinnerHandlersList : Array
Inner handlers list that stores all inner handlers indexed by the currentIndex.
AbstractServiceInvoker
  token : AsyncToken
Generated when making asynchronous RPC operations.
ServiceInvoker
Public Methods
 MethodDefined by
 Inherited
initialized(document:Object, id:String):void
Called automatically by the MXML compiler if the AbstractAction is set up by using a tag.
AbstractAction
 Inherited
trigger(scope:IScope):void
This method gets called when the IActionList (ex: EventHandlers) is running.
AbstractAction
Protected Methods
 MethodDefined by
 Inherited
Handler that will be fired when the first of the innerHandlers starts executing.
AbstractServiceInvoker
  
complete(scope:IScope):void
The last method that trigger calls.
ServiceInvoker
 Inherited
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
 Inherited
prepare(scope:IScope):void
The first method that trigger calls.
AbstractServiceInvoker
 Inherited
run(scope:IScope):void
Where all the action occurs.
AbstractAction
 Inherited
setProperties(scope:IScope):void
Where all the properties are set into the currentInstance.
BaseAction
Property detail
channelSetproperty
channelSet:ChannelSet  [read-write]

Provides access to the ChannelSet used by the service. The ChannelSet can be manually constructed and assigned, or it will be dynamically created to use the configured Channels for the destination for this service.

Implementation
    public function get channelSet():ChannelSet
    public function set channelSet(value:ChannelSet):void
destinationproperty 
destination:String  [read-write]

The destination of the service. This value should match a destination entry in the services-config.xml file.

Implementation
    public function get destination():String
    public function set destination(value:String):void
makeObjectsBindableproperty 
makeObjectsBindable:Boolean  [read-write]

When this value is true, anonymous objects returned are forced to bindable objects.

The default value is true.

Implementation
    public function get makeObjectsBindable():Boolean
    public function set makeObjectsBindable(value:Boolean):void
methodproperty 
method:Object  [read-write]

The method attribute specifies what function to call on the service instance. It can be a SmartObject or String

The default value is null.

Implementation
    public function get method():Object
    public function set method(value:Object):void
passwordproperty 
password:Object  [read-write]

Password to supply to setCredentials method

Implementation
    public function get password():Object
    public function set password(value:Object):void
remotePasswordproperty 
remotePassword:Object  [read-write]

Password to supply to setCredentials method

Implementation
    public function get remotePassword():Object
    public function set remotePassword(value:Object):void
remoteUsernameproperty 
remoteUsername:Object  [read-write]

Username to supply to setCredentials method

Implementation
    public function get remoteUsername():Object
    public function set remoteUsername(value:Object):void
requestTimeoutproperty 
requestTimeout:int  [read-write]

Provides access to the request timeout in seconds for sent messages. A value less than or equal to zero prevents request timeout.

Implementation
    public function get requestTimeout():int
    public function set requestTimeout(value:int):void
tokenproperty 
protected var token:AsyncToken

Generated when making asynchronous RPC operations. The same object is available in the result and fault events in the token property.

usernameproperty 
username:Object  [read-write]

Username to supply to setCredentials method

Implementation
    public function get username():Object
    public function set username(value:Object):void
Method detail
complete()method
protected override function complete(scope:IScope):void

The last method that trigger calls. This is your last chance to perform any action before the IActionList calls the next IAction in the list.

Parameters
scope:IScope