This method of the ObjectProxy class invokes a method on the server represented by the ObjectProxy. Optionally, method arguments may be passed as an array of objects. The call method has the following signatures:
ObjectProxy.call(String method)
ObjectProxy.call(String method, Object[] args)
Invokes a method on the server represented by the ObjectProxy.
public Object ObjectProxy.call(String method);
An object resulting from invoking the method.
method | A String containing the name of the method to invoke on the server. |
Invokes a method on the server represented by the ObjectProxy, passing arguments as an array of objects.
public Object ObjectProxy.call(String method, Object[] args);
An object resulting from invoking the method.
method | A String containing the name of the method to invoke on the server. |
args | An array of objects that are arguments to the method on the server. Java data types are automatically converted to data types suitable for use on the server. |