Packagecom.absentdesign.core.webapis.wordpress
Classpublic class WPServiceRequest
InheritanceWPServiceRequest Inheritance XMLRPCObject Inheritance AbstractRPCObject Inheritance mx.rpc.AbstractService

wrapper for XMLRPCObject to make requests to WordPress XML-RPC



Public Properties
 PropertyDefined by
 Inheritedcall : Function
AbstractRPCObject
 Inheritedconcurrency : String
Value that indicates how to handle multiple calls to the same service.
AbstractRPCObject
 InheritedcontentType : String
XMLRPCObject
  data : *
WPServiceRequest
 Inheriteddestination : String
AbstractRPCObject
 Inheritedendpoint : String
The root url of the xmlrpc path.
XMLRPCObject
  eventType : String
WPServiceRequest
 Inheritedheaders : Object
Set request headers
XMLRPCObject
 Inheritedmethod : *
AbstractRPCObject
  parseFunction : String
WPServiceRequest
 InheritedrequestTimeout : int
AbstractRPCObject
 InheritedshowBusyCursor : Boolean
inheritDoc
AbstractRPCObject
 InheriteduseProxy : Boolean
set if to use proxy
XMLRPCObject
Protected Properties
 PropertyDefined by
 Inherited_appservername : String
AbstractRPCObject
  args : Array
WPServiceRequest
  callMethod : String
WPServiceRequest
 Inherited_concurrency : String = "multiple"
AbstractRPCObject
 Inherited_contentType : String = "text/xml"
XMLRPCObject
 Inherited_destination : String
AbstractRPCObject
 Inherited_endpoint : String
AbstractRPCObject
 Inherited_gateway : XMLRPCConnection
XMLRPCObject
 Inherited_id : String
AbstractRPCObject
 Inherited_isbusy : Boolean = false
AbstractRPCObject
 Inherited_requestTimeout : Number = 0
AbstractRPCObject
 Inheritedrespondercounter : int
AbstractRPCObject
 Inherited_responders : ArrayCollection
AbstractRPCObject
  service : WPService
WPServiceRequest
 Inherited_showBusyCursor : Boolean = false
AbstractRPCObject
 Inherited_view : Object
AbstractRPCObject
Public Methods
 MethodDefined by
  
WPServiceRequest(service:WPService, callMethod:String, args:Array, parseFunction:String, eventType:String)
WPServiceRequest
 Inherited
initialized(view:Object, id:String):void
AbstractRPCObject
  
load():void
Load the request
WPServiceRequest
 Inherited
XMLRPCObject
 Inherited
setCredentials(username:String, password:String):void
XMLRPCObject
 Inherited
setRemoteCredentials(username:String, password:String):void
XMLRPCObject
Protected Methods
 MethodDefined by
 Inherited
callProperty(method:*, ... args):*
Overrides the behavior of an object property that can be called as a function.
AbstractRPCObject
 Inherited
getAccess():AbstractRestriction
AbstractRPCObject
 Inherited
makeCall(method:String, args:Array):AsyncToken
This is where the RPC function call implemntation should be placed.
XMLRPCObject
 Inherited
onFault(evt:RPCEvent):void
XMLRPCObject
 Inherited
onRemoveResponder(event:Event):void
AbstractRPCObject
  
onResult(evt:RPCEvent):void
fired when the service call is complete and dispatches a ServiceEvent to let the WPMethodGroup know that data is available
WPServiceRequest
 Inherited
send():void
AbstractRPCObject
Events
 EventSummaryDefined by
 Inherited  AbstractRPCObject
 Inherited  AbstractRPCObject
 Inherited  AbstractRPCObject
Public Constants
 ConstantDefined by
 InheritedLAST : String = "last"
[static]
AbstractRPCObject
 InheritedMULTIPLE : String = "multiple"
[static]
AbstractRPCObject
 InheritedSINGLE : String = "single"
[static]
AbstractRPCObject
Property detail
argsproperty
protected var args:Array
callMethodproperty 
protected var callMethod:String
dataproperty 
public var data:*
eventTypeproperty 
public var eventType:String
parseFunctionproperty 
public var parseFunction:String
serviceproperty 
protected var service:WPService
Constructor detail
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
Method detail
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

Parameters
evt:RPCEvent