Package | com.absentdesign.core.webapis.wordpress |
Class | public class WPServiceRequest |
Inheritance | WPServiceRequest ![]() ![]() ![]() |
Property | Defined by | ||
---|---|---|---|
![]() | call : Function | AbstractRPCObject | |
![]() | concurrency : String
Value that indicates how to handle multiple calls to the same service.
| AbstractRPCObject | |
![]() | contentType : String | XMLRPCObject | |
data : * | WPServiceRequest | ||
![]() | destination : String | AbstractRPCObject | |
![]() | endpoint : String
The root url of the xmlrpc path.
| XMLRPCObject | |
eventType : String | WPServiceRequest | ||
![]() | headers : Object
Set request headers
| XMLRPCObject | |
![]() | method : * | AbstractRPCObject | |
parseFunction : String | WPServiceRequest | ||
![]() | requestTimeout : int | AbstractRPCObject | |
![]() | showBusyCursor : Boolean
inheritDoc
| AbstractRPCObject | |
![]() | useProxy : Boolean
set if to use proxy
| XMLRPCObject |
Property | Defined by | ||
---|---|---|---|
![]() | _appservername : String | AbstractRPCObject | |
args : Array | WPServiceRequest | ||
callMethod : String | WPServiceRequest | ||
![]() | _concurrency : String = "multiple" | AbstractRPCObject | |
![]() | _contentType : String = "text/xml" | XMLRPCObject | |
![]() | _destination : String | AbstractRPCObject | |
![]() | _endpoint : String | AbstractRPCObject | |
![]() | _gateway : XMLRPCConnection | XMLRPCObject | |
![]() | _id : String | AbstractRPCObject | |
![]() | _isbusy : Boolean = false | AbstractRPCObject | |
![]() | _requestTimeout : Number = 0 | AbstractRPCObject | |
![]() | respondercounter : int | AbstractRPCObject | |
![]() | _responders : ArrayCollection | AbstractRPCObject | |
service : WPService | WPServiceRequest | ||
![]() | _showBusyCursor : Boolean = false | AbstractRPCObject | |
![]() | _view : Object | AbstractRPCObject |
Method | Defined by | ||
---|---|---|---|
WPServiceRequest(service:WPService, callMethod:String, args:Array, parseFunction:String, eventType:String)
| WPServiceRequest | ||
![]() |
initialized(view:Object, id:String):void
| AbstractRPCObject | |
load():void
Load the request
| WPServiceRequest | ||
![]() |
makeConnection():void
| XMLRPCObject | |
![]() |
setCredentials(username:String, password:String):void
| XMLRPCObject | |
![]() |
setRemoteCredentials(username:String, password:String):void
| XMLRPCObject |
Method | Defined by | ||
---|---|---|---|
![]() |
callProperty(method:*, ... args):*
Overrides the behavior of an object property that can be called as a function.
| AbstractRPCObject | |
![]() |
getAccess():AbstractRestriction
| AbstractRPCObject | |
![]() |
makeCall(method:String, args:Array):AsyncToken
This is where the RPC function call implemntation should be placed.
| XMLRPCObject | |
![]() | XMLRPCObject | ||
![]() |
onRemoveResponder(event:Event):void
| AbstractRPCObject | |
fired when the service call is complete and dispatches a ServiceEvent to let the WPMethodGroup know
that data is available
| WPServiceRequest | ||
![]() |
send():void
| AbstractRPCObject |
args | property |
protected var args:Array
callMethod | property |
protected var callMethod:String
data | property |
public var data:*
eventType | property |
public var eventType:String
parseFunction | property |
public var parseFunction:String
service | property |
protected var service:WPService
WPServiceRequest | () | constructor |
public function WPServiceRequest(service:WPService, callMethod:String, args:Array, parseFunction:String, eventType:String)
Parameters
service:WPService — The WPService that is making the request
|
|
callMethod:String — The method that you are calling (eg wp.getPages)
|
|
args:Array — Any method arguments
|
|
parseFunction:String — The parseFunction reference from WPMethodGroupHelper to parse the server response
|
|
eventType:String — The event to dispatch once the response has been loaded successfully
|
load | () | method |
public function load():void
Load the request
onResult | () | method |
protected override function onResult(evt:RPCEvent):void
fired when the service call is complete and dispatches a ServiceEvent to let the WPMethodGroup know that data is available
Parametersevt:RPCEvent |