This is the base class for all the proxy classes that are responsible for interacting with the different
ColdFusion services such as image or pdf.
The common communication logic that invoves capturing server connection and information and making
the Remote Object call is all abstracted out here.
public function BasicService(source:String)
The constructor that takes in the source cfc on the ColdFusion side resposible for the service
Parameters public function addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Implementation for the IEventDispatcher interface begins
Parameters
protected function call(... args):void
This function is called by all the sub class that extend the BasicService to make a call to the ColdFusion
service.
Parameters
protected function convertResultInEvent(event:ResultEvent):ColdFusionServiceResultEvent
This function is the defualt implementation which creates a ColdFusionServiceResultEvent
from the result Event without modifying the result. If any service proxy class needs to modify the
result, then such a serive proxy class will override this function and return
the modified ColdFusionServiceResult event.
Parameters
Returns protected static function convertToArrayOfServiceElement(input:Array):Array
This is a utility function that converts, user input which comes in the form of
array of key value pairs.
For some operations on the service, the ColdFusion service expects an Array, with each induvidual Array element
being a key value pair. The key being the operation/attribute and the value being the value of that attribute.
So the attributes set by user is converted to that format in this function which
returns an array of ServiceElement
Parameters
Returns protected static function convertToArrayOfServiceElementCollection(input:Array):Array
This is a utility function that converts, user input which comes in the form of
array of key value pairs, with each value again being an a key value pair.
For some operations such as the batchoperation on the Image service, the ColdFusion service expects an Array, with each induvidual Array element
being a key value pair. The key being the operation and the value being an array of key value pairs of the different
attributes corresponding to that operation. So the attributes set by user is converted to that format in this function which
returns an array
Parameters
Returns public function dispatchEvent(evt:Event):Boolean
Parameters
Returns public function hasEventListener(type:String):Boolean
Parameters
Returns public function initialized(doctest:Object, id:String):void
Implementation for the IEventDispatcher interface ends
Parameters
public function removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Parameters
public function willTrigger(type:String):Boolean
Parameters
ReturnsEvent Object Type: coldfusion.service.events.ColdFusionServiceFaultEvent
property ColdFusionServiceFaultEvent.type = coldfusion.service.events.ColdFusionServiceFaultEvent.FAULT
Dispatched when a ColdFusion service call fails.
Defines the value of the
Type
property of a ColdFusionServiceFaultEvent object.
Event Object Type: coldfusion.service.events.ColdFusionServiceResultEvent
property ColdFusionServiceResultEvent.type = coldfusion.service.events.ColdFusionServiceResultEvent.RESULT
Dispatched when a ColdFusion service call returns successfully.
The RESULT event type.
© 2009 Adobe Systems Incorporated. All rights reserved.
Thu Aug 6 2009, 01:33 AM -07:00