java.lang.Object
org.freedesktop.dbus.utils.AddressBuilder
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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 StringgetSessionConnection(String _dbusMachineIdFile) Retrieves the connection address to connect to the DBus session-bus.static StringDetermine the address of the DBus system connection.
-
Field Details
-
DEFAULT_SYSTEM_BUS_ADDRESS
- See Also:
-
-
Constructor Details
-
AddressBuilder
public AddressBuilder()
-
-
Method Details
-
getSystemConnection
Determine the address of the DBus system connection.- Returns:
- String
-
getSessionConnection
Retrieves the connection address to connect to the DBus session-bus.- Parameters:
_dbusMachineIdFile- alternative location of dbus machine id file, use null if not needed- Returns:
- address
-
getDbusMachineId
Extracts the machine-id usually found on Linux in various system directories, or generate a fake id for non-Linux platforms.- Parameters:
_dbusMachineIdFile- alternative location of dbus machine id file, null if not needed- Returns:
- machine-id string, never null
-