Package | com.cyntaxic.cynmvc.model.helpers |
Class | public class DataCall |
Inheritance | DataCall flash.events.EventDispatcher |
DataCall
is a helper class for CynModel
to
retrieve data from external sources.
Property | Defined 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 |
Method | Defined By | ||
---|---|---|---|
DataCall(handle:Object, url:String, method:String = get, data:Object = null, contentType:String = null, headers:Array = null)
Creates a new DataCall object. | DataCall |
Constant | Defined 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 |
timeout | property |
timeout:Number
The duration of time for the timeout to occur.
public function get timeout():Number
public function set timeout(value:Number):void
url | property |
url:String
[read-only]
The URL that is being called by the DataCall
object.
public function get url():String
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.
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.
|
COMPLETE | Constant |
public static const COMPLETE:String = complete
Used to specify a completion of a DataCall
.
GET | Constant |
public static const GET:String = get
Used to specify the HTTP GET type.
IO_ERROR | Constant |
public static const IO_ERROR:String = ioError
Used to specify a DataCall
input/output error.
POST | Constant |
public static const POST:String = post
Used to specify the HTTP POST type.
SECURITY_ERROR | Constant |
public static const SECURITY_ERROR:String = securityError
Used to specify a DataCall
security error.
TIMEOUT | Constant |
public static const TIMEOUT:String = timeout
Used to specify a DataCall
timeout.