Packagecom.exadel.flamingo.flex.components.flamingo
Classpublic class HessianCallSet
InheritanceHessianCallSet Inheritance flash.events.EventDispatcher
Implementsmx.rpc.IResponder

This component allows calling a set of methods on the server simultaneously and getting results of all these methods at one dash. It uses Hessian protocol for server comunication.

Default MXML Propertycalls



Public Properties
 PropertyDefined by
  calls : Array
Array of HessianCall elements.
HessianCallSet
  destination : String
Specifies destination for HessianService
HessianCallSet
Public Methods
 MethodDefined by
  
HessianCallSet(target:IEventDispatcher = null)
Constructor.
HessianCallSet
  
addCall(value:HessianCall):void
Adds passed HessianCall to the end of the calls Array.
HessianCallSet
  
addCallAt(index:Number, value:HessianCall):void
Adds passed HessianCall to the calls Array at position specified by index parameter.
HessianCallSet
  
fault(info:Object):void
HessianCallSet
  
removeCallAt(index:Number):void
Removes HessianCall from calls Array at position specified by index parameter.
HessianCallSet
  
result(data:Object):void
HessianCallSet
  
send(... args):void
Sends HessianCallSet to server.
HessianCallSet
Events
 EventSummaryDefined by
    HessianCallSet
    HessianCallSet
Property detail
callsproperty
calls:Array  [read-write]

Array of HessianCall elements.

Implementation
    public function get calls():Array
    public function set calls(value:Array):void

See also

destinationproperty 
destination:String  [read-write]

Specifies destination for HessianService

Implementation
    public function get destination():String
    public function set destination(value:String):void
Constructor detail
HessianCallSet()constructor
public function HessianCallSet(target:IEventDispatcher = null)

Constructor. Initializes component.

Parameters
target:IEventDispatcher (default = null)
Method detail
addCall()method
public function addCall(value:HessianCall):void

Adds passed HessianCall to the end of the calls Array.

Parameters
value:HessianCall — HessianCall to be added

See also

addCallAt()method 
public function addCallAt(index:Number, value:HessianCall):void

Adds passed HessianCall to the calls Array at position specified by index parameter.

Parameters
index:Number — specifies position where HessianCall should be added
 
value:HessianCallHessianCall to be added

See also

fault()method 
public function fault(info:Object):voidParameters
info:Object
removeCallAt()method 
public function removeCallAt(index:Number):void

Removes HessianCall from calls Array at position specified by index parameter.

Parameters
index:Number — specifies position at which HessianCall should be removed
result()method 
public function result(data:Object):voidParameters
data:Object
send()method 
public function send(... args):void

Sends HessianCallSet to server. Arguments passed in are passed along as arguments to HessianCall elements in calls Array. Each argument mast be in form of Array and number of arguments must match number of HessianCall elements in calls Array. If there are no arguments passed, the arguments object of every HessianCall element is used as the source of parameters.

Parameters
... args
Event detail
faultevent 
Event object type: mx.rpc.events.FaultEvent

resultevent  
Event object type: mx.rpc.events.ResultEvent