| Package | com.yworks.remote |
| Class | public class DefaultServerAction |
| Inheritance | DefaultServerAction Object |
| Implements | ServerAction |
ServerAction implementation for XML server responses
that uses a ResultHandler implementation for handling the server response.
| Property | Defined By | ||
|---|---|---|---|
| url : String
Get or set the url of the HTTP service of this server action. | DefaultServerAction | ||
| Method | Defined 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 | ||
| url | property |
url:StringGet or set the url of the HTTP service of this server action.
public function get url():String public function set url(value:String):void| 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.
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
| sendAction | () | method |
public function sendAction():voidPerform a request to the HTTP service that was passed upon initialization.
| setParameters | () | method |
public function setParameters(parameters:Object):voidSets the parameters that will be passed to the HTTP service as GET or POST parameters.
Parameters
parameters:Object — The parameters to be set
|