public final class CallObject
extends java.lang.Object
Reflection.
The method invocation is now done using the java concurrent classes of 1.5+,
where a Callable and Future interfaces are used to execute the
methods on a managed thread pool. This is the main calling mechanism that makes a
single invocation on a single object. See also CallPool for a managed pool
of CallObjects.
| Constructor and Description |
|---|
CallObject()
Creates a new instance of CallObject
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
call(MethodInfo methodInfo)
Retrieve the correct communication object and make a call using it.
|
public java.lang.Object call(MethodInfo methodInfo) throws LicasException, ServiceException, java.lang.Exception
REST communication works best and so it may be necessary to use a
Rest_MethodHandler and parse the String reply. In that case, the operating system
would be defined as Android (Const.OS = Const.ANDROID).methodInfo - the method description.LicasException - if the call handle has not been properly constructed.ServiceException - probably for password or service not found.java.lang.Exception - any other error.