Class org.as2lib.io.conn.core.client.AbstractClientServiceProxy

Description

AbstractClientServiceProxy offers default implementations of some methods needed when implemnting the ClientServiceProxy interface.

Method Index

invoke(), invokeByName(), invokeByNameAndArguments(), invokeByNameAndCallback()

Inherited from BasicClass

Method Detail

invoke

public function invoke():MethodInvocationCallback

See Also

  • ClientServiceProxy#invoke

invokeByName

public function invokeByName(methodName:String):MethodInvocationCallback

Invokes the method with passed-in methodName on the service.

The invocation is done by forwardning to the method passing an empty arguments array.

Parameters

methodNamethe name of the method to invoke

Return

a callback that can be used to get informed of the response

See Also

  • ClientServiceProxy#invokeByName

invokeByNameAndArguments

public function invokeByNameAndArguments(methodName:String, args:Array):MethodInvocationCallback

Invokes the method with passed-in methodName and args on the service.

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 method passing an empty arguments array.

Parameters

methodNamethe name of the method to invoke on the service
argsthe arguments that are passed to the method as parameters

Return

the callback that handles the response

See Also

  • ClientServiceProxy#invokeByNameAndArguments

invokeByNameAndCallback

public 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 method passing an empty arguments array.

Parameters

methodNamethe name of the method to invoke
callbackthe callback that receives the return value or errors

Return

a callback that can be used to get informed of the response

See Also

  • ClientServiceProxy#invokeByNameAndCallback