Packagecom.cyntaxic.cynmvc.model.vos
Classpublic class DataCallVO
InheritanceDataCallVO Inheritance CyntaxicVO Inheritance Object

The DataCallVO class is a value object used to contain information about a DataCall.



Public Properties
 PropertyDefined By
  contentType : String
The content type to send to the server.
DataCallVO
  data : Object
The data object to be sent to the server as either GET or POST.
DataCallVO
  httpStatus : int
The http status code returned from the server.
DataCallVO
  method : String
The HTTP method to use, either GET or POST.
DataCallVO
  result : String
The result string indicating if the call was successful or not.
DataCallVO
  url : String
The URL that is being called.
DataCallVO
Public Methods
 MethodDefined By
  
DataCallVO(url:String, method:String = get, data:Object = null, contentType:String = text/plain, httpStatus:int = 0)
Creates a new DataCallVO object.
DataCallVO
 Inherited
describe(compact:Boolean = true):String
Returns a valid JSON string describing the object.
CyntaxicVO
 Inherited
getProp(prop:String):Object
Gets a property value by its property name.
CyntaxicVO
Public Constants
 ConstantDefined By
  GET : String = get
[static] Used to specify the HTTP GET type.
DataCallVO
  POST : String = post
[static] Used to specify the HTTP POST type.
DataCallVO
Property Detail
contentTypeproperty
contentType:String

The content type to send to the server.


Implementation
    public function get contentType():String
    public function set contentType(value:String):void
dataproperty 
data:Object

The data object to be sent to the server as either GET or POST.


Implementation
    public function get data():Object
    public function set data(value:Object):void
httpStatusproperty 
httpStatus:int

The http status code returned from the server.


Implementation
    public function get httpStatus():int
    public function set httpStatus(value:int):void
methodproperty 
method:String

The HTTP method to use, either GET or POST.


Implementation
    public function get method():String
    public function set method(value:String):void
resultproperty 
result:String

The result string indicating if the call was successful or not.


Implementation
    public function get result():String
    public function set result(value:String):void
urlproperty 
url:String

The URL that is being called.


Implementation
    public function get url():String
    public function set url(value:String):void
Constructor Detail
DataCallVO()Constructor
public function DataCallVO(url:String, method:String = get, data:Object = null, contentType:String = text/plain, httpStatus:int = 0)

Creates a new DataCallVO object.

Parameters
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 = text/plain) — The content type to send to the server.
 
httpStatus:int (default = 0)
Constant Detail
GETConstant
public static const GET:String = get

Used to specify the HTTP GET type.

POSTConstant 
public static const POST:String = post

Used to specify the HTTP POST type.