Class ConnectionMessageHandler
java.lang.Object
org.freedesktop.dbus.connections.base.AbstractConnectionBase
org.freedesktop.dbus.connections.base.ConnectionMethodInvocation
org.freedesktop.dbus.connections.base.DBusBoundPropertyHandler
org.freedesktop.dbus.connections.base.ConnectionMessageHandler
- All Implemented Interfaces:
Closeable, AutoCloseable
- Direct Known Subclasses:
AbstractConnection
public abstract sealed class ConnectionMessageHandler
extends DBusBoundPropertyHandler
permits AbstractConnection
Abstract class containing most methods to handle/react to a message received on a connection.
Part of the
Part of the
AbstractConnectionBase → ConnectionMethodInvocation
→ DBusBoundPropertyHandler → ConnectionMessageHandler → AbstractConnection hierarchy.- Since:
- 5.0.0 - 2023-10-23
- Author:
- hypfvieh
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConnectionMessageHandler(ConnectionConfig _conCfg, TransportConfig _transportConfig, ReceivingServiceConfig _rsCfg) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidhandleException(Message _methodOrSignal, DBusExecutionException _exception) protected voidhandleMessage(Error _err) protected voidMethods inherited from class DBusBoundPropertyHandler
handleDBusBoundProperties, handleGet, handleGetAll, handleSetMethods inherited from class ConnectionMethodInvocation
invokedMethodReply, invokeMethod, invokeMethodAndReply, queueInvokeMethod, setupAndInvokeMethods inherited from class AbstractConnectionBase
close, connect, createReaderThread, disconnect, disconnect, doWithExportedObjects, doWithExportedObjectsAndReturn, getAddress, getBusAddress, getCallbackManager, getCallInfo, getConnectionConfig, getDisconnectCallback, getError, getExportedObject, getExportedObject, getExportedObject, getFallbackContainer, getGenericHandledSignals, getHandledSignals, getImportedObjects, getInfoMap, getLogger, getMachineId, getMessageFactory, getObjectTree, getPendingCalls, getPendingErrorQueue, getReceivingService, getTransport, getTransportConfig, internalDisconnect, isConnected, listen, rejectUnknownProperty, sendMessage, setDisconnectCallback, toString, unExportObject
-
Constructor Details
-
ConnectionMessageHandler
protected ConnectionMessageHandler(ConnectionConfig _conCfg, TransportConfig _transportConfig, ReceivingServiceConfig _rsCfg) throws DBusException - Throws:
DBusException
-
-
Method Details
-
handleException
- Specified by:
handleExceptionin classConnectionMethodInvocation
-
handleMessage
-
handleMessage
-