java.lang.Object
org.freedesktop.dbus.utils.AddressBuilder
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungstatic final StringVeraltet, zur Entfernung: Dieses API-Element wird in einer zukünftigen Version entfernt.static final StringVeraltet, zur Entfernung: Dieses API-Element wird in einer zukünftigen Version entfernt.Constant has been moved toDBusSysProps.static final StringVeraltet, zur Entfernung: Dieses API-Element wird in einer zukünftigen Version entfernt.Constant has been moved toDBusSysProps. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic StringgetDbusMachineId(String _dbusMachineIdFile) Extracts the machine-id usually found on Linux in various system directories, or generate a fake id for non-Linux platforms.static BusAddressgetSessionConnection(String _dbusMachineIdFile) Retrieves the connection address to connect to the DBus session-bus.
Will return TCP connection when no unix transport found and TCP is available.static BusAddressDetermine the address of the DBus system connection.
-
Felddetails
-
DBUS_SYSTEM_BUS_ADDRESS
@Deprecated(forRemoval=true, since="v4.2.2 - 2023-01-20") public static final String DBUS_SYSTEM_BUS_ADDRESSVeraltet, zur Entfernung: Dieses API-Element wird in einer zukünftigen Version entfernt.Constant has been moved toDBusSysProps.- Siehe auch:
-
DEFAULT_SYSTEM_BUS_ADDRESS
@Deprecated(forRemoval=true, since="v4.2.2 - 2023-01-20") public static final String DEFAULT_SYSTEM_BUS_ADDRESSVeraltet, zur Entfernung: Dieses API-Element wird in einer zukünftigen Version entfernt.Constant has been moved toDBusSysProps.- Siehe auch:
-
DBUS_SESSION_BUS_ADDRESS
@Deprecated(forRemoval=true, since="v4.2.2 - 2023-01-20") public static final String DBUS_SESSION_BUS_ADDRESSVeraltet, zur Entfernung: Dieses API-Element wird in einer zukünftigen Version entfernt.Constant has been moved toDBusSysProps.- Siehe auch:
-
-
Methodendetails
-
getSystemConnection
Determine the address of the DBus system connection.- Gibt zurück:
- String
-
getSessionConnection
Retrieves the connection address to connect to the DBus session-bus.
Will return TCP connection when no unix transport found and TCP is available.- Parameter:
_dbusMachineIdFile- alternative location of dbus machine id file, use null if not needed- Gibt zurück:
- address
- Löst aus:
AddressResolvingException- when no suitable address can be found for any available transport
-
getDbusMachineId
Extracts the machine-id usually found on Linux in various system directories, or generate a fake id for non-Linux platforms.- Parameter:
_dbusMachineIdFile- alternative location of dbus machine id file, null if not needed- Gibt zurück:
- machine-id string, never null
-
DBusSysProps.