Class RemoteInvocationHandler
java.lang.Object
org.freedesktop.dbus.RemoteInvocationHandler
- All Implemented Interfaces:
InvocationHandler
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectconvertRV(Object[] _rp, Method _m, AbstractConnection _conn) static ObjectconvertRV(Object[] _rp, Type[] _types, Method _m, AbstractConnection _conn) static ObjectexecuteRemoteMethod(RemoteObject _ro, Method _m, Type[] _types, AbstractConnection _conn, int _syncmethod, CallbackHandler<?> _callback, Object... _args) static ObjectexecuteRemoteMethod(RemoteObject _ro, Method _m, String[] _customSignatures, Type[] _types, AbstractConnection _conn, int _syncmethod, CallbackHandler<?> _callback, Object... _args) Executes a remote method.static ObjectexecuteRemoteMethod(RemoteObject _ro, Method _m, AbstractConnection _conn, int _syncmethod, CallbackHandler<?> _callback, Object... _args)
-
Field Details
-
CALL_TYPE_SYNC
public static final int CALL_TYPE_SYNC- See Also:
-
CALL_TYPE_ASYNC
public static final int CALL_TYPE_ASYNC- See Also:
-
CALL_TYPE_CALLBACK
public static final int CALL_TYPE_CALLBACK- See Also:
-
-
Constructor Details
-
RemoteInvocationHandler
-
-
Method Details
-
getRemote
-
invoke
-
convertRV
public static Object convertRV(Object[] _rp, Method _m, AbstractConnection _conn) throws DBusException - Throws:
DBusException
-
convertRV
public static Object convertRV(Object[] _rp, Type[] _types, Method _m, AbstractConnection _conn) throws DBusException - Throws:
DBusException
-
executeRemoteMethod
public static Object executeRemoteMethod(RemoteObject _ro, Method _m, AbstractConnection _conn, int _syncmethod, CallbackHandler<?> _callback, Object... _args) throws DBusException - Throws:
DBusException
-
executeRemoteMethod
public static Object executeRemoteMethod(RemoteObject _ro, Method _m, String[] _customSignatures, Type[] _types, AbstractConnection _conn, int _syncmethod, CallbackHandler<?> _callback, Object... _args) throws DBusException Executes a remote method.- Parameters:
_ro- remote object_m- method to call_customSignatures- array of custom signatures which will be used for variants_types- array of types_conn- connection_syncmethod- true if the method is executed synchronously_callback- callback used when async method call_args- arguments to pass to method- Returns:
- Object, maybe null
- Throws:
DBusException- when call fails
-
executeRemoteMethod
public static Object executeRemoteMethod(RemoteObject _ro, Method _m, Type[] _types, AbstractConnection _conn, int _syncmethod, CallbackHandler<?> _callback, Object... _args) throws DBusException - Throws:
DBusException
-