ServerServiceProxy handles client requests to a certain service and its
responses.
public function run(host:String):VoidRuns the service and listens for requests of clients.
host | the host to run this service on |
public function invokeMethodByNameAndArguments(methodName:String, args:Array):Void
Invokes the service method corresponding to the passed-in methodName on
the actaul service object, passing the content of args array as parameters.
methodName | the name of the service method to invoke |
args | arguments to pass-to the method |
public function invokeMethodByNameAndArgumentsAndResponseService(methodName:String, args:Array, responseServiceUrl:String):Void
Invokes the service method corresponding to the passed-in methodName on
the actual service object and returns the response to the client using the
passed-in responseServiceUrl.
methodName | name of method to invoke on the service |
args | arguments to pass to the method |
responseServiceUrl | the url of response service to which the result is sent |
public function getService(Void)Returns the actual service this proxy wraps.
the wrapped service
public function getPath(Void):StringReturns the path on the host of this service.
the path of this service
public function isRunning(Void):BooleanIndicates whether this service is currently running.
true if this service runs else false
public function addErrorListener(errorListener:MethodInvocationErrorListener):VoidAdds a new error listener to listen for errors that may occur when trying to invoke a method on this service.
errorListener | the error listener to add |
public function removeErrorListener(errorListener:MethodInvocationErrorListener):VoidRemoves an added error listener.
errorListener | the error listener to remove |