| Package | org.restfulx.services.as3http |
| Class | public class AS3JSONHTTPServiceProvider |
| Inheritance | AS3JSONHTTPServiceProvider AS3XMLHTTPServiceProvider XMLHTTPServiceProvider |
| Property | Defined by | ||
|---|---|---|---|
| id : int [read-only]
ID uniquely identifies this service provider.
| AS3JSONHTTPServiceProvider | ||
![]() | rootUrl : String
Root URL that this service provider will prefix to all requests.
| XMLHTTPServiceProvider | |
| Method | Defined by | ||
|---|---|---|---|
|
AS3JSONHTTPServiceProvider(httpRootUrl:String = null)
| AS3JSONHTTPServiceProvider | ||
![]() |
canLazyLoad():Boolean
Indicates if this service provider can perform lazy loading.
| XMLHTTPServiceProvider | |
![]() |
create(object:Object, responder:IResponder, metadata:Object = null, nestedBy:Array = null, recursive:Boolean = false, undoRedoFlag:int = 0):void
RESTful CRUD contract: create method.
| AS3XMLHTTPServiceProvider | |
![]() |
destroy(object:Object, responder:IResponder, metadata:Object = null, nestedBy:Array = null, recursive:Boolean = false, undoRedoFlag:int = 0):void
RESTful CRUD contract: destroy method.
| AS3XMLHTTPServiceProvider | |
|
hasErrors(object:Object):Boolean
Indicates to the ServiceResponder that this particular run (typically create/update or destroy)
has produced errors.
| AS3JSONHTTPServiceProvider | ||
![]() |
index(object:Object, responder:IResponder, metadata:Object = null, nestedBy:Array = null):void
RESTful CRUD contract: index method.
| AS3XMLHTTPServiceProvider | |
![]() |
marshall(object:Object, recursive:Boolean = false):Object
Produces service provider specific model representation suitable for being serialized.
| XMLHTTPServiceProvider | |
![]() |
show(object:Object, responder:IResponder, metadata:Object = null, nestedBy:Array = null):void
RESTful CRUD contract: show method.
| AS3XMLHTTPServiceProvider | |
![]() |
unmarshall(object:Object, disconnected:Boolean = false, defaultType:String = null):Object
The reverse of marshall.
| XMLHTTPServiceProvider | |
![]() |
update(object:Object, responder:IResponder, metadata:Object = null, nestedBy:Array = null, recursive:Boolean = false, undoRedoFlag:int = 0):void
RESTful CRUD contract: update method.
| AS3XMLHTTPServiceProvider | |
| Constant | Defined by | ||
|---|---|---|---|
| ID : int [static] service id
| AS3JSONHTTPServiceProvider | ||
| id | property |
id:int [read-only]ID uniquely identifies this service provider. This is typically obtained from ServiceManager like so: public static const ID:int = ServiceManager.generateId(); You can then wrap around this with a getter: public function get id():int { return ID; }
Implementation public function get id():int
See also
| AS3JSONHTTPServiceProvider | () | constructor |
public function AS3JSONHTTPServiceProvider(httpRootUrl:String = null)Parameters
httpRootUrl:String (default = null) — root URL that this service provider will prefix to all requests.
By default this will be equal to Rx.httpRootUrl parameter
|
| hasErrors | () | method |
public override function hasErrors(object:Object):BooleanIndicates to the ServiceResponder that this particular run (typically create/update or destroy) has produced errors. This typically means that response processing must be terminated and instead errors should be displayed.
Parametersobject:Object — the response object being processed
|
Boolean — true if there are errors false otherwise
|
See also
| ID | constant |
public static const ID:intservice id