| Package | com.cyntaxic.cynmvc.model.vos |
| Class | public class DataCallVO |
| Inheritance | DataCallVO CyntaxicVO Object |
DataCallVO class is a value object used to contain information about a DataCall.
| Property | Defined 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 | ||
| Method | Defined By | ||
|---|---|---|---|
DataCallVO(url:String, method:String = get, data:Object = null, contentType:String = text/plain, httpStatus:int = 0)
Creates a new DataCallVO object. | DataCallVO | ||
![]() | describe(compact:Boolean = true):String
Returns a valid JSON string describing the object. | CyntaxicVO | |
![]() | getProp(prop:String):Object
Gets a property value by its property name. | CyntaxicVO | |
| Constant | Defined 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 | ||
| contentType | property |
contentType:StringThe content type to send to the server.
public function get contentType():String public function set contentType(value:String):void| data | property |
data:ObjectThe data object to be sent to the server as either GET or POST.
public function get data():Object public function set data(value:Object):void| httpStatus | property |
httpStatus:intThe http status code returned from the server.
public function get httpStatus():int public function set httpStatus(value:int):void| method | property |
method:StringThe HTTP method to use, either GET or POST.
public function get method():String public function set method(value:String):void| result | property |
result:StringThe result string indicating if the call was successful or not.
public function get result():String public function set result(value:String):void| url | property |
url:StringThe URL that is being called.
public function get url():String public function set url(value:String):void| 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.
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) |
| GET | Constant |
public static const GET:String = getUsed to specify the HTTP GET type.
| POST | Constant |
public static const POST:String = postUsed to specify the HTTP POST type.