Uses of Class
org.freedesktop.dbus.exceptions.DBusException
Packages that use DBusException
Package
Description
-
Uses of DBusException in org.freedesktop.dbus
Methods in org.freedesktop.dbus that throw DBusExceptionModifier and TypeMethodDescriptionstatic 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 everyVariantpassed 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 ofVariants in _parameters, all remainingVariants
are created without a explicit signature (Variant constructor will try to determine type automatically).
If more entries are given thenVariants 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 ObjectRemoteInvocationHandler.convertRV(Object[] _rp, Method _m, AbstractConnection _conn) static ObjectRemoteInvocationHandler.convertRV(Object[] _rp, Type[] _types, Method _m, AbstractConnection _conn) static ObjectRemoteInvocationHandler.executeRemoteMethod(RemoteObject _ro, Method _m, Type[] _types, AbstractConnection _conn, int _syncmethod, CallbackHandler<?> _callback, Object... _args) static ObjectRemoteInvocationHandler.executeRemoteMethod(RemoteObject _ro, Method _m, String[] _customSignatures, Type[] _types, AbstractConnection _conn, int _syncmethod, CallbackHandler<?> _callback, Object... _args) Executes a remote method.static ObjectRemoteInvocationHandler.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 StringMarshalling.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 intMarshalling.getJavaType(String _dbusType, List<Type> _resultValue, int _limit) Converts a dbus type string into Java Type objects,DBusAsyncReply.getReply()Get the reply.Constructors in org.freedesktop.dbus that throw DBusExceptionModifierConstructorDescriptionDBusMatchRule(Class<?> _c) Deprecated, for removal: This API element is subject to removal in a future version.DBusMatchRule(Class<?> _c, String _source, String _object) Deprecated, for removal: This API element is subject to removal in a future version.DBusMatchRule(Class<? extends DBusInterface> _c, String _method) Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version. -
Uses of DBusException in org.freedesktop.dbus.connections
Methods in org.freedesktop.dbus.connections that throw DBusExceptionModifier and TypeMethodDescriptionvoidAbstractConnection.addFallback(String _objectPrefix, DBusInterface _object) Export an object as a fallback object.protected abstract AutoCloseableAbstractConnection.addGenericSigHandler(DBusMatchRule _rule, DBusSigHandler<DBusSignal> _handler) Adds aDBusMatchRuleto 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.abstract <T extends DBusSignal>
AutoCloseableAbstractConnection.addSigHandler(DBusMatchRule _rule, DBusSigHandler<T> _handler) Add a signal handler with the givenDBusMatchRuleto DBus.protected <T extends DBusSignal>
voidAbstractConnection.addSigHandlerWithoutMatch(Class<? extends DBusSignal> _signal, DBusSigHandler<T> _handler) voidAbstractConnection.exportObject(String _objectPath, DBusInterface _object) Export an object so that its methods can be called on DBus.voidAbstractConnection.exportObject(DBusInterface _object) Export an object so that its methods can be called on DBus.protected abstract voidAbstractConnection.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.abstract <T extends DBusSignal>
voidAbstractConnection.removeSigHandler(DBusMatchRule _rule, DBusSigHandler<T> _handler) Remove a match rule with the givenDBusSigHandler.Constructors in org.freedesktop.dbus.connections that throw DBusExceptionModifierConstructorDescriptionprotectedAbstractConnection(ConnectionConfig _conCfg, TransportConfig _transportConfig, ReceivingServiceConfig _rsCfg) -
Uses of DBusException in org.freedesktop.dbus.connections.base
Methods in org.freedesktop.dbus.connections.base that throw DBusExceptionModifier and TypeMethodDescriptionabstract DBusInterfaceAbstractConnectionBase.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.PropHandledDBusBoundPropertyHandler.handleDBusBoundProperties(ExportedObject _exportObject, MethodCall _methodCall, Object[] _params) Method which handles the magic related toDBusBoundPropertyannotation.
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.PropHandledDBusBoundPropertyHandler.handleGetAll(ExportedObject _exportObject, MethodCall _methodCall) Called when 'GetAll' method of DBusPropertiesinterface is called.protected voidConnectionMethodInvocation.invokedMethodReply(MethodCall _methodCall, Method _me, Object _result) protected voidAbstractConnectionBase.rejectUnknownProperty(MethodCall _methodCall, Object[] _params) Sends a reply on the bus to signal a non-existing property was requested.Constructors in org.freedesktop.dbus.connections.base that throw DBusExceptionModifierConstructorDescriptionprotectedAbstractConnectionBase(ConnectionConfig _conCfg, TransportConfig _transportConfig, ReceivingServiceConfig _rsCfg) protectedConnectionMessageHandler(ConnectionConfig _conCfg, TransportConfig _transportConfig, ReceivingServiceConfig _rsCfg) protectedConnectionMethodInvocation(ConnectionConfig _conCfg, TransportConfig _transportConfig, ReceivingServiceConfig _rsCfg) protectedDBusBoundPropertyHandler(ConnectionConfig _conCfg, TransportConfig _transportConfig, ReceivingServiceConfig _rsCfg) -
Uses of DBusException in org.freedesktop.dbus.connections.impl
Methods in org.freedesktop.dbus.connections.impl that throw DBusExceptionModifier and TypeMethodDescriptionDBusConnection.addGenericSigHandler(DBusMatchRule _rule, DBusSigHandler<DBusSignal> _handler) protected AutoCloseableDirectConnection.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 givenDBusMatchRuleto DBus.<T extends DBusSignal>
AutoCloseableDirectConnection.addSigHandler(DBusMatchRule _rule, DBusSigHandler<T> _handler) abstract CBaseConnectionBuilder.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) IRemoteObjectGetter.getPeerRemoteObject(String _busname, String _objectpath) Return a reference to a remote object.default <I extends DBusInterface>
IIRemoteObjectGetter.getPeerRemoteObject(String _busname, String _objectpath, Class<I> _type) default <I extends DBusInterface>
IIRemoteObjectGetter.getPeerRemoteObject(String _busname, String _objectpath, Class<I> _type, boolean _autostart) Return a reference to a remote object.default <I extends DBusInterface>
IIRemoteObjectGetter.getPeerRemoteObject(String _busname, DBusPath _objectpath, Class<I> _type) default <I extends DBusInterface>
IIRemoteObjectGetter.getPeerRemoteObject(String _busname, DBusPath _objectpath, Class<I> _type, boolean _autostart) DBusConnection.getRemoteObject(String _busname, String _objectpath) <I extends DBusInterface>
IDBusConnection.getRemoteObject(String _busname, String _objectpath, Class<I> _type, boolean _autostart) 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.IRemoteObjectGetter.getRemoteObject(String _busname, String _objectpath) Return a reference to a remote object.default <I extends DBusInterface>
IIRemoteObjectGetter.getRemoteObject(String _busname, String _objectpath, Class<I> _type) Return a reference to a remote object.<I extends DBusInterface>
IIRemoteObjectGetter.getRemoteObject(String _busname, String _objectpath, Class<I> _type, boolean _autostart) Return a reference to a remote object.default DBusInterfaceIRemoteObjectGetter.getRemoteObject(String _busname, DBusPath _objectpath) default <I extends DBusInterface>
IIRemoteObjectGetter.getRemoteObject(String _busname, DBusPath _objectpath, Class<I> _type) default <I extends DBusInterface>
IIRemoteObjectGetter.getRemoteObject(String _busname, DBusPath _objectpath, Class<I> _type, boolean _autostart) voidDBusConnection.register()Register this connection on the bus using 'Hello' message.
Will do nothing if session was already registered.voidDBusConnection.releaseBusName(String _busname) Release a bus name.voidDBusConnection.removeGenericSigHandler(DBusMatchRule _rule, DBusSigHandler<DBusSignal> _handler) protected voidDirectConnection.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.<T extends DBusSignal>
voidDBusConnection.removeSigHandler(DBusMatchRule _rule, DBusSigHandler<T> _handler) Remove a match rule with the givenDBusSigHandler.<T extends DBusSignal>
voidDirectConnection.removeSigHandler(DBusMatchRule _rule, DBusSigHandler<T> _handler) voidDBusConnection.requestBusName(String _busname) Request a bus name. -
Uses of DBusException in org.freedesktop.dbus.connections.transports
Methods in org.freedesktop.dbus.connections.transports that throw DBusExceptionModifier and TypeMethodDescriptionTransportBuilder.build()Create the transport with the previously provided configuration.static TransportBuilderTransportBuilder.createWithDynamicSession(String _transportType) Creates a newTransportBuilderwith a dynamically created address.AbstractTransport.readMessage()Read a message from the underlying socket. -
Uses of DBusException in org.freedesktop.dbus.exceptions
Subclasses of DBusException in org.freedesktop.dbus.exceptionsModifier and TypeClassDescriptionclassclassThrown when something goes wrong with the connection to DBus.classclassclassclassclassclassclassThrown if a message is formatted incorrectly.classclass -
Uses of DBusException in org.freedesktop.dbus.interfaces
Methods in org.freedesktop.dbus.interfaces that throw DBusExceptionConstructors in org.freedesktop.dbus.interfaces that throw DBusExceptionModifierConstructorDescriptionInterfacesAdded(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) -
Uses of DBusException in org.freedesktop.dbus.matchrules
Methods in org.freedesktop.dbus.matchrules that throw DBusExceptionModifier and TypeMethodDescriptionSet message type filter using class. -
Uses of DBusException in org.freedesktop.dbus.messages
Methods in org.freedesktop.dbus.messages that throw DBusExceptionModifier and TypeMethodDescriptionprotected voidAppend a series of values to the message.voidDBusSignal.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 MessageMessageFactory.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 StringExportedObject.generateMethodsXml(Class<?> _clz) Generates the introspection data for the input interface methodsprotected StringExportedObject.generatePropertiesXml(Class<?> _clz) Generates the introspection data for the input interface properties.protected StringExportedObject.generatePropertyXml(String _propertyName, Class<?> _propertyTypeClass, DBusProperty.Access _access, PropertiesEmitsChangedSignal.EmitChangeSignal _emitChangeSignal) Generates the introspection data for the single property.protected StringExportedObject.generatePropertyXml(DBusProperty _property) Generates the introspection data for the single property.protected StringExportedObject.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.Object[]Message.getParameters(List<Type[]> _constructorArgs) Parses and returns the parameters to this message as an Object array.protected voidMessage.padAndMarshall(List<Object> _hargs, long _serial, String _sig, Object... _args) Adds message padding and marshalling.voidWarning, do not use this method unless you really know what you are doing.Constructors in org.freedesktop.dbus.messages that throw DBusExceptionModifierConstructorDescriptionprotectedDBusSignal(byte _endianess, String _objectPath, Object... _args) Create a new signal.protectedDBusSignal(byte _endianess, String _source, String _path, String _iface, String _member, String _sig, Object... _args) protectedDBusSignal(String _objectPath, Object... _args) Create a new signal.protectedError(byte _endianess, String _dest, String _errorName, long _replyserial, String _sig, Object... _args) protectedError(byte _endianess, String _source, String _dest, String _errorName, long _replyserial, String _sig, Object... _args) protectedprotectedExportedObject(DBusInterface _object, boolean _weakreferences) protectedMessage(byte _endian, byte _type, byte _flags) Create a message; only to be called by sub-classes.protectedMethodBase(byte _endianness, byte _methodCall, byte _flags) protectedMethodCall(byte _endianess, String _dest, String _path, String _iface, String _member, byte _flags, String _sig, Object... _args) protectedMethodCall(byte _endianess, String _source, String _dest, String _path, String _iface, String _member, byte _flags, String _sig, Object... _args) protectedMethodReturn(byte _endianess, String _dest, long _replyserial, String _sig, Object... _args) protectedMethodReturn(byte _endianess, String _source, String _dest, long _replyserial, String _sig, Object... _args) protectedMethodReturn(String _source, MethodCall _mc, String _sig, Object... _args) protectedMethodReturn(MethodCall _mc, String _sig, Object... _args) -
Uses of DBusException in org.freedesktop.dbus.propertyref
Methods in org.freedesktop.dbus.propertyref that throw DBusExceptionModifier and TypeMethodDescriptionstatic ObjectPropRefRemoteHandler.handleDBusBoundProperty(AbstractConnection _conn, RemoteObject _remote, Method _method, Object[] _args) Handles theDBusBoundPropertyannotation.
The special handling is needed because when this annotation is used the
object uses the DBusPropertiesinterface 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). -
Uses of DBusException in org.freedesktop.dbus.spi.message
Methods in org.freedesktop.dbus.spi.message that throw DBusExceptionModifier and TypeMethodDescriptionprotected abstract List<FileDescriptor> AbstractInputStreamMessageReader.readFileDescriptors(SocketChannel _inputChannel) Methods which will be called when file descriptor passing is enabled.final MessageAbstractInputStreamMessageReader.readMessage()IMessageReader.readMessage() -
Uses of DBusException in org.freedesktop.dbus.utils
Methods in org.freedesktop.dbus.utils that throw DBusExceptionModifier and TypeMethodDescriptionstatic voidDBusObjects.requireDBusSignalRule(Class<?> _type, String _source) Checks if given type is a DBusSignal and source comply with naming rules. -
Uses of DBusException in org.freedesktop.dbus.utils.generator
Methods in org.freedesktop.dbus.utils.generator that throw DBusExceptionModifier and TypeMethodDescriptionStructTreeBuilder.buildStructClasses(String _dbusSig, String _structBaseFqcn, ClassBuilderInfo _clzBldr, List<ClassBuilderInfo> _generatedClasses) Builds the struct(s) found in _dbusSig.static StringTypeConverter.getJavaTypeFromDBusType(String _dbusType, Set<String> _javaIncludes) Converts a DBus data type string to java classname(s).