Verwendungen von Klasse
org.freedesktop.dbus.exceptions.DBusException
Package
Beschreibung
-
Verwendungen von DBusException in org.freedesktop.dbus
Modifizierer und TypMethodeBeschreibungstatic Object[]
Marshalling.convertParameters
(Object[] _parameters, Type[] _types, String[] _customSignatures, AbstractConnectionBase _conn) Recursively converts types for serialization onto DBus.
When _customSignature is not empty or null, it will be used to wrap the given parameters to aVariant
of the type defined in the _customSignature array.
It is required that everyVariant
passed has a signature definition in _customSignature.
E.g. 3 Objects are given in _parameters: String, Variant, Variant.
Then it is expected that _customSignature (if used) contains 2 entries one for eachVariant
.
If the _customSignature is smaller than the count ofVariant
s in _parameters, all remainingVariant
s
are created without a explicit signature (Variant constructor will try to determine type automatically).
If more entries are given thenVariant
s found in _parameters, the additional signatures are ignored.static Object[]
Marshalling.convertParameters
(Object[] _parameters, Type[] _types, AbstractConnectionBase _conn) Recursively converts types for serialization onto DBus.static Object
RemoteInvocationHandler.convertRV
(Object[] _rp, Method _m, AbstractConnection _conn) static Object
RemoteInvocationHandler.convertRV
(Object[] _rp, Type[] _types, Method _m, AbstractConnection _conn) static Object
RemoteInvocationHandler.executeRemoteMethod
(RemoteObject _ro, Method _m, Type[] _types, AbstractConnection _conn, int _syncmethod, CallbackHandler<?> _callback, Object... _args) static Object
RemoteInvocationHandler.executeRemoteMethod
(RemoteObject _ro, Method _m, String[] _customSignatures, Type[] _types, AbstractConnection _conn, int _syncmethod, CallbackHandler<?> _callback, Object... _args) Executes a remote method.static Object
RemoteInvocationHandler.executeRemoteMethod
(RemoteObject _ro, Method _m, AbstractConnection _conn, int _syncmethod, CallbackHandler<?> _callback, Object... _args) static String[]
Marshalling.getDBusType
(Type _javaType) Will return the DBus type corresponding to the given Java type.static String
Marshalling.getDBusType
(Type[] _javaType) Will return the DBus type corresponding to the given Java type.static String[]
Marshalling.getDBusType
(Type _dataType, boolean _basic) Will return the DBus type corresponding to the given Java type.static int
Marshalling.getJavaType
(String _dbusType, List<Type> _resultValue, int _limit) Converts a dbus type string into Java Type objects,DBusAsyncReply.getReply()
Get the reply.ModifiziererKonstruktorBeschreibungDBusMatchRule
(Class<? extends Object> _c) DBusMatchRule
(Class<? extends Object> _c, String _source, String _object) DBusMatchRule
(Class<? extends DBusInterface> _c, String _method) -
Verwendungen von DBusException in org.freedesktop.dbus.connections
Modifizierer und TypMethodeBeschreibungvoid
AbstractConnection.addFallback
(String _objectPrefix, DBusInterface _object) Export an object as a fallback object.protected abstract AutoCloseable
AbstractConnection.addGenericSigHandler
(DBusMatchRule _rule, DBusSigHandler<DBusSignal> _handler) Adds aDBusMatchRule
to with a generic signal handler.<T extends DBusSignal>
AutoCloseableAbstractConnection.addSigHandler
(Class<T> _type, DBusInterface _object, DBusSigHandler<T> _handler) Add a Signal Handler.<T extends DBusSignal>
AutoCloseableAbstractConnection.addSigHandler
(Class<T> _type, DBusSigHandler<T> _handler) Add a Signal Handler.protected abstract <T extends DBusSignal>
AutoCloseableAbstractConnection.addSigHandler
(DBusMatchRule _rule, DBusSigHandler<T> _handler) Add a signal handler with the givenDBusMatchRule
to DBus.protected <T extends DBusSignal>
voidAbstractConnection.addSigHandlerWithoutMatch
(Class<? extends DBusSignal> _signal, DBusSigHandler<T> _handler) void
AbstractConnection.exportObject
(String _objectPath, DBusInterface _object) Export an object so that its methods can be called on DBus.void
AbstractConnection.exportObject
(DBusInterface _object) Export an object so that its methods can be called on DBus.protected abstract void
AbstractConnection.removeGenericSigHandler
(DBusMatchRule _rule, DBusSigHandler<DBusSignal> _handler) Remove a generic signal handler with the givenDBusMatchRule
.<T extends DBusSignal>
voidAbstractConnection.removeSigHandler
(Class<T> _type, DBusInterface _object, DBusSigHandler<T> _handler) Remove a Signal Handler.<T extends DBusSignal>
voidAbstractConnection.removeSigHandler
(Class<T> _type, DBusSigHandler<T> _handler) Remove a Signal Handler.protected abstract <T extends DBusSignal>
voidAbstractConnection.removeSigHandler
(DBusMatchRule _rule, DBusSigHandler<T> _handler) Remove a match rule with the givenDBusSigHandler
.ModifiziererKonstruktorBeschreibungprotected
AbstractConnection
(TransportConfig _transportConfig, ReceivingServiceConfig _rsCfg) -
Verwendungen von DBusException in org.freedesktop.dbus.connections.base
Modifizierer und TypMethodeBeschreibungabstract DBusInterface
AbstractConnectionBase.getExportedObject
(String _source, String _path) Retrieves an remote object using source and path.abstract <T extends DBusInterface>
TAbstractConnectionBase.getExportedObject
(String _source, String _path, Class<T> _type) Retrieves an remote object using source and path.AbstractConnectionBase.getExportedObject
(DBusInterface _interface) protected org.freedesktop.dbus.connections.base.DBusBoundPropertyHandler.PropHandled
DBusBoundPropertyHandler.handleDBusBoundProperties
(ExportedObject _exportObject, MethodCall _methodCall, Object[] _params) Method which handles the magic related toDBusBoundProperty
annotation.
It takes care of proper method calling (calling Get/Set stuff on DBus Properties interface)
and will also take care of converting wrapped Variant types.protected org.freedesktop.dbus.connections.base.DBusBoundPropertyHandler.PropHandled
DBusBoundPropertyHandler.handleGetAll
(ExportedObject _exportObject, MethodCall _methodCall) Called when 'GetAll' method of DBusProperties
interface is called.protected void
ConnectionMethodInvocation.invokedMethodReply
(MethodCall _methodCall, Method _me, Object _result) protected void
AbstractConnectionBase.rejectUnknownProperty
(MethodCall _methodCall, Object[] _params) Sends a reply on the bus to signal a non-existing property was requested.ModifiziererKonstruktorBeschreibungprotected
AbstractConnectionBase
(TransportConfig _transportConfig, ReceivingServiceConfig _rsCfg) protected
ConnectionMessageHandler
(TransportConfig _transportConfig, ReceivingServiceConfig _rsCfg) protected
ConnectionMethodInvocation
(TransportConfig _transportConfig, ReceivingServiceConfig _rsCfg) protected
DBusBoundPropertyHandler
(TransportConfig _transportConfig, ReceivingServiceConfig _rsCfg) -
Verwendungen von DBusException in org.freedesktop.dbus.connections.impl
Modifizierer und TypMethodeBeschreibungDBusConnection.addGenericSigHandler
(DBusMatchRule _rule, DBusSigHandler<DBusSignal> _handler) protected AutoCloseable
DirectConnection.addGenericSigHandler
(DBusMatchRule _rule, DBusSigHandler<DBusSignal> _handler) <T extends DBusSignal>
AutoCloseableDBusConnection.addSigHandler
(Class<T> _type, String _source, DBusInterface _object, DBusSigHandler<T> _handler) Add a Signal Handler.<T extends DBusSignal>
AutoCloseableDBusConnection.addSigHandler
(Class<T> _type, String _source, DBusSigHandler<T> _handler) Add a Signal Handler.<T extends DBusSignal>
AutoCloseableDBusConnection.addSigHandler
(DBusMatchRule _rule, DBusSigHandler<T> _handler) Add a signal handler with the givenDBusMatchRule
to DBus.protected <T extends DBusSignal>
AutoCloseableDirectConnection.addSigHandler
(DBusMatchRule _rule, DBusSigHandler<T> _handler) abstract C
BaseConnectionBuilder.build()
DBusConnectionBuilder.build()
Create the newDBusConnection
.DirectConnectionBuilder.build()
Create the newDBusConnection
.<T extends DBusInterface>
TDBusConnection.dynamicProxy
(String _source, String _path, Class<T> _type) Tries to resolve a proxy to a remote object.DBusConnection.getExportedObject
(String _source, String _path) <T extends DBusInterface>
TDBusConnection.getExportedObject
(String _source, String _path, Class<T> _type) DirectConnection.getExportedObject
(String _source, String _path) <T extends DBusInterface>
TDirectConnection.getExportedObject
(String _source, String _path, Class<T> _type) DBusConnection.getPeerRemoteObject
(String _busname, String _objectpath) Return a reference to a remote object.<I extends DBusInterface>
IDBusConnection.getPeerRemoteObject
(String _busname, String _objectpath, Class<I> _type) <I extends DBusInterface>
IDBusConnection.getPeerRemoteObject
(String _busname, String _objectpath, Class<I> _type, boolean _autostart) Return a reference to a remote object.DBusConnection.getRemoteObject
(String _busname, String _objectpath) Return a reference to a remote object.<I extends DBusInterface>
IDBusConnection.getRemoteObject
(String _busname, String _objectpath, Class<I> _type) Return a reference to a remote object.<I extends DBusInterface>
IDBusConnection.getRemoteObject
(String _busname, String _objectpath, Class<I> _type, boolean _autostart) Return a reference to a remote object.DirectConnection.getRemoteObject
(String _objectPath) Return a reference to a remote object.<T extends DBusInterface>
TDirectConnection.getRemoteObject
(String _objectPath, Class<T> _type) Return a reference to a remote object.void
DBusConnection.register()
Register this connection on the bus using 'Hello' message.
Will do nothing if session was already registered.void
DBusConnection.releaseBusName
(String _busname) Release a bus name.void
DBusConnection.removeGenericSigHandler
(DBusMatchRule _rule, DBusSigHandler<DBusSignal> _handler) protected void
DirectConnection.removeGenericSigHandler
(DBusMatchRule _rule, DBusSigHandler<DBusSignal> _handler) <T extends DBusSignal>
voidDBusConnection.removeSigHandler
(Class<T> _type, String _source, DBusInterface _object, DBusSigHandler<T> _handler) Remove a Signal Handler.<T extends DBusSignal>
voidDBusConnection.removeSigHandler
(Class<T> _type, String _source, DBusSigHandler<T> _handler) Remove a Signal Handler.protected <T extends DBusSignal>
voidDBusConnection.removeSigHandler
(DBusMatchRule _rule, DBusSigHandler<T> _handler) Remove a match rule with the givenDBusSigHandler
.protected <T extends DBusSignal>
voidDirectConnection.removeSigHandler
(DBusMatchRule _rule, DBusSigHandler<T> _handler) void
DBusConnection.requestBusName
(String _busname) Request a bus name. -
Verwendungen von DBusException in org.freedesktop.dbus.connections.transports
Modifizierer und TypMethodeBeschreibungTransportBuilder.build()
Create the transport with the previously provided configuration.static TransportBuilder
TransportBuilder.createWithDynamicSession
(String _transportType) Creates a newTransportBuilder
with a dynamically created address.AbstractTransport.readMessage()
Read a message from the underlying socket. -
Verwendungen von DBusException in org.freedesktop.dbus.exceptions
Modifizierer und TypKlasseBeschreibungclass
Thrown when something goes wrong with the connection to DBus.class
class
class
class
class
class
class
Thrown if a message is formatted incorrectly.class
-
Verwendungen von DBusException in org.freedesktop.dbus.interfaces
ModifiziererKonstruktorBeschreibungInterfacesAdded
(String _objectPath, DBusPath _source, Map<String, Map<String, Variant<?>>> _interfaces) InterfacesRemoved
(String _objectPath, DBusPath _source, List<String> _interfaces) NameAcquired
(String _path, String _name) NameOwnerChanged
(String _path, String _name, String _oldOwner, String _newOwner) PropertiesChanged
(String _path, String _interfaceName, Map<String, Variant<?>> _propertiesChanged, List<String> _propertiesRemoved) -
Verwendungen von DBusException in org.freedesktop.dbus.messages
Modifizierer und TypMethodeBeschreibungprotected void
Append a series of values to the message.void
DBusSignal.appendbody
(AbstractConnectionBase _conn) MessageFactory.createError
(String _dest, String _errorName, long _replyserial, String _sig, Object... _args) MessageFactory.createError
(String _source, String _dest, String _errorName, long _replyserial, String _sig, Object... _args) MessageFactory.createError
(String _source, Message _m, Throwable _ex) MessageFactory.createError
(Message _m, Throwable _ex) static Message
MessageFactory.createMessage
(byte _type, byte[] _buf, byte[] _header, byte[] _body, List<FileDescriptor> _filedescriptors) MessageFactory.createMethodCall
(String _dest, String _path, String _iface, String _member, byte _flags, String _sig, Object... _args) MessageFactory.createMethodCall
(String _source, String _dest, String _path, String _iface, String _member, byte _flags, String _sig, Object... _args) MessageFactory.createMethodReturn
(String _source, MethodCall _mc, String _sig, Object... _args) MessageFactory.createMethodReturn
(MethodCall _mc, String _sig, Object... _args) DBusSignal.createReal
(AbstractConnectionBase _conn) Called to create signal objects for object handlers.MessageFactory.createSignal
(String _objectPath, Object... _args) MessageFactory.createSignal
(String _source, String _path, String _iface, String _member, String _sig, Object... _args) protected Object[]
Message.extract
(String _signature, byte[] _dataBuf, int[] _offsets, org.freedesktop.dbus.messages.Message.ExtractOptions _options) Demarshall values from a buffer.protected Object[]
Message.extract
(String _signature, byte[] _dataBuf, int _offsets, org.freedesktop.dbus.messages.Message.ExtractOptions _options) Demarshall values from a buffer.protected String
ExportedObject.generateMethodsXml
(Class<?> _clz) Generates the introspection data for the input interface methodsprotected String
ExportedObject.generatePropertiesXml
(Class<?> _clz) Generates the introspection data for the input interface properties.protected String
ExportedObject.generatePropertyXml
(String _propertyName, Class<?> _propertyTypeClass, DBusProperty.Access _access) Generates the introspection data for the single property.protected String
ExportedObject.generatePropertyXml
(DBusProperty _property) Generates the introspection data for the single property.protected String
ExportedObject.generateSignalsXml
(Class<?> _clz) Generates the introspection data for the input interface signalsObject[]
Message.getParameters()
Parses and returns the parameters to this message as an Object array.protected void
Message.padAndMarshall
(List<Object> _hargs, long _serial, String _sig, Object... _args) Adds message padding and marshalling.void
Warning, do not use this method unless you really know what you are doing.ModifiziererKonstruktorBeschreibungprotected
DBusSignal
(byte _endianess, String _objectPath, Object... _args) Create a new signal.protected
DBusSignal
(byte _endianess, String _source, String _path, String _iface, String _member, String _sig, Object... _args) protected
DBusSignal
(String _objectPath, Object... _args) Create a new signal.protected
Error
(byte _endianess, String _dest, String _errorName, long _replyserial, String _sig, Object... _args) protected
Error
(byte _endianess, String _source, String _dest, String _errorName, long _replyserial, String _sig, Object... _args) protected
protected
ExportedObject
(DBusInterface _object, boolean _weakreferences) protected
Message
(byte _endian, byte _type, byte _flags) Create a message; only to be called by sub-classes.protected
MethodBase
(byte _endianness, byte _methodCall, byte _flags) protected
MethodCall
(byte _endianess, String _dest, String _path, String _iface, String _member, byte _flags, String _sig, Object... _args) protected
MethodCall
(byte _endianess, String _source, String _dest, String _path, String _iface, String _member, byte _flags, String _sig, Object... _args) protected
MethodReturn
(byte _endianess, String _dest, long _replyserial, String _sig, Object... _args) protected
MethodReturn
(byte _endianess, String _source, String _dest, long _replyserial, String _sig, Object... _args) protected
MethodReturn
(String _source, MethodCall _mc, String _sig, Object... _args) protected
MethodReturn
(MethodCall _mc, String _sig, Object... _args) -
Verwendungen von DBusException in org.freedesktop.dbus.propertyref
Modifizierer und TypMethodeBeschreibungstatic Object
PropRefRemoteHandler.handleDBusBoundProperty
(AbstractConnection _conn, RemoteObject _remote, Method _method, Object[] _args) Handles theDBusBoundProperty
annotation.
The special handling is needed because when this annotation is used the
object uses the DBusProperties
interface without explicitly implementing it.
In that case we have to fake the presents of this interface and also take care about
the types which have to be wrapped inVariant
(due to DBus Properties specify that every property value is aVariant
). -
Verwendungen von DBusException in org.freedesktop.dbus.spi.message
Modifizierer und TypMethodeBeschreibungprotected abstract List
<FileDescriptor> AbstractInputStreamMessageReader.readFileDescriptors
(SocketChannel _inputChannel) Methods which will be called when file descriptor passing is enabled.final Message
AbstractInputStreamMessageReader.readMessage()
IMessageReader.readMessage()