Packagecom.cyntaxic.cynmvc.model.helpers
Classpublic class DataCall
InheritanceDataCall Inheritance flash.events.EventDispatcher

The DataCall is a helper class for CynModel to retrieve data from external sources.



Public Properties
 PropertyDefined By
  timeout : Number
The duration of time for the timeout to occur.
DataCall
  url : String
[read-only] The URL that is being called by the DataCall object.
DataCall
Public Methods
 MethodDefined By
  
DataCall(handle:Object, url:String, method:String = get, data:Object = null, contentType:String = null, headers:Array = null)
Creates a new DataCall object.
DataCall
Public Constants
 ConstantDefined By
  COMPLETE : String = complete
[static] Used to specify a completion of a DataCall.
DataCall
  GET : String = get
[static] Used to specify the HTTP GET type.
DataCall
  IO_ERROR : String = ioError
[static] Used to specify a DataCall input/output error.
DataCall
  POST : String = post
[static] Used to specify the HTTP POST type.
DataCall
  SECURITY_ERROR : String = securityError
[static] Used to specify a DataCall security error.
DataCall
  TIMEOUT : String = timeout
[static] Used to specify a DataCall timeout.
DataCall
Property Detail
timeoutproperty
timeout:Number

The duration of time for the timeout to occur.


Implementation
    public function get timeout():Number
    public function set timeout(value:Number):void
urlproperty 
url:String  [read-only]

The URL that is being called by the DataCall object.


Implementation
    public function get url():String
Constructor Detail
DataCall()Constructor
public function DataCall(handle:Object, url:String, method:String = get, data:Object = null, contentType:String = null, headers:Array = null)

Creates a new DataCall object. DataCall makes calls to an external source and returns the data.

Parameters
handle:Object — The function handle to be used as a callback after the call is complete or failed.
 
url:String — The URL that is being called.
 
method:String (default = get) — The HTTP method to use, either GET or POST.
 
data:Object (default = null) — The data object to be sent to the server as either GET or POST.
 
contentType:String (default = null) — The content type to send to the server.
 
headers:Array (default = null) — The headers to send to the server.
Constant Detail
COMPLETEConstant
public static const COMPLETE:String = complete

Used to specify a completion of a DataCall.

GETConstant 
public static const GET:String = get

Used to specify the HTTP GET type.

IO_ERRORConstant 
public static const IO_ERROR:String = ioError

Used to specify a DataCall input/output error.

POSTConstant 
public static const POST:String = post

Used to specify the HTTP POST type.

SECURITY_ERRORConstant 
public static const SECURITY_ERROR:String = securityError

Used to specify a DataCall security error.

TIMEOUTConstant 
public static const TIMEOUT:String = timeout

Used to specify a DataCall timeout.