AbstractClientServiceProxy
| Kind of class: | class |
|---|---|
| Inherits from: | BasicClass |
| Known subclasses: | |
| Author: | Simon Wacker |
| Classpath: | org.as2lib.io.conn.core.client.AbstractClientServiceProxy |
| File last modified: | Saturday, 28 May 2005, 11:57:22 |
AbstractClientServiceProxy offers default implementations of some methodsneeded when implemnting the ClientServiceProxy interface.
Summary
Instance methods
Instance methods inherited from BasicClass
Instance methods
invoke
function invoke (
See also:
invokeByName
function invokeByName (
methodName:String) : MethodInvocationCallback
Invokes the method with passed-in
methodName on the service.The invocation is done by forwardning to the #invokeByNameAndArgumentsAndCallback
method passing an empty arguments array.
Parameters:
methodName:
the name of the method to invoke
Returns:
a callback that can be used to get informed of the response
See also:
invokeByNameAndArguments
function invokeByNameAndArguments (
methodName:String,
args:Array) : MethodInvocationCallback
Invokes the method with passed-in
service.
methodName and args on theservice.
The response of the method invocation is delegated to the appropriate method
on the returned callback. This is either the onReturn method when no
error occured. Or the onError method in case something went wrong.
The invocation is done by forwardning to the #invokeByNameAndArgumentsAndCallback
method passing an empty arguments array.
Parameters:
methodName:
the name of the method to invoke on the service
args :
the arguments that are passed to the method as parameters
Returns:
the callback that handles the response
invokeByNameAndCallback
function invokeByNameAndCallback (
methodName:String,
callback:MethodInvocationCallback) : MethodInvocationCallback
Invokes the the method with passed-in
method on the service.When the response arrives the appropriate callback method is invoked.
If the passed-in callback is not null, the returned callback
is the same instance.
The invocation is done by forwardning to the #invokeByNameAndArgumentsAndCallback
method passing an empty arguments array.
Parameters:
methodName:
the name of the method to invoke
callback :
the callback that receives the return value or errors
Returns:
a callback that can be used to get informed of the response