Packagecom.yworks.remote
Classpublic class DefaultServerAction
InheritanceDefaultServerAction Inheritance Object
Implements ServerAction

A simple default ServerAction implementation for XML server responses that uses a ResultHandler implementation for handling the server response.



Public Properties
 PropertyDefined By
  url : String
Get or set the url of the HTTP service of this server action.
DefaultServerAction
Public Methods
 MethodDefined By
  
DefaultServerAction(service:HTTPService, resultHandler:ResultHandler)
Create a new server action for the given HTTP service.
DefaultServerAction
  
sendAction():void
Perform a request to the HTTP service that was passed upon initialization.
DefaultServerAction
  
setParameters(parameters:Object):void
Sets the parameters that will be passed to the HTTP service as GET or POST parameters.
DefaultServerAction
Property Detail
urlproperty
url:String

Get or set the url of the HTTP service of this server action.


Implementation
    public function get url():String
    public function set url(value:String):void
Constructor Detail
DefaultServerAction()Constructor
public function DefaultServerAction(service:HTTPService, resultHandler:ResultHandler)

Create a new server action for the given HTTP service.

Listeners for the ResultEvent.RESULT and FaultEvent.FAULT are registered with priority 50.

Parameters
service:HTTPService — The HTTP service that defines the service that is called by this server action. The result format of the service should be set to "e4x" for XML result handling.
 
resultHandler:ResultHandler — The result handler that will be called when a XML response is received.

See also

com.yworks.remote.HTTPServiceFactory
Method Detail
sendAction()method
public function sendAction():void

Perform a request to the HTTP service that was passed upon initialization.

setParameters()method 
public function setParameters(parameters:Object):void

Sets the parameters that will be passed to the HTTP service as GET or POST parameters.

Parameters

parameters:Object — The parameters to be set