Klasse DBusDaemon.DBusServer

java.lang.Object
org.freedesktop.dbus.bin.DBusDaemon.DBusServer
Alle implementierten Schnittstellen:
DBus, DBusInterface, Introspectable, Peer
Umschließende Klasse:
DBusDaemon

public class DBusDaemon.DBusServer extends Object implements DBus, Introspectable, Peer
  • Konstruktordetails

    • DBusServer

      public DBusServer()
  • Methodendetails

    • isRemote

      public boolean isRemote()
      Beschreibung aus Schnittstelle kopiert: DBusInterface
      Returns true on remote objects. Local objects implementing this interface MUST return false.
      Angegeben von:
      isRemote in Schnittstelle DBusInterface
      Gibt zurück:
      boolean
    • Hello

      public String Hello()
      Beschreibung aus Schnittstelle kopiert: DBus
      Initial message to register ourselves on the Bus.
      Angegeben von:
      Hello in Schnittstelle DBus
      Gibt zurück:
      The unique name of this connection to the Bus.
    • ListNames

      public String[] ListNames()
      Beschreibung aus Schnittstelle kopiert: DBus
      Lists all connected names on the Bus.
      Angegeben von:
      ListNames in Schnittstelle DBus
      Gibt zurück:
      An array of all connected names.
    • NameHasOwner

      public boolean NameHasOwner(String _name)
      Beschreibung aus Schnittstelle kopiert: DBus
      Determine if a name has an owner.
      Angegeben von:
      NameHasOwner in Schnittstelle DBus
      Parameter:
      _name - The name to query.
      Gibt zurück:
      true if the name has an owner.
    • GetNameOwner

      public String GetNameOwner(String _name)
      Beschreibung aus Schnittstelle kopiert: DBus
      Get the connection unique name that owns the given name.
      Angegeben von:
      GetNameOwner in Schnittstelle DBus
      Parameter:
      _name - The name to query.
      Gibt zurück:
      The connection which owns the name.
    • GetConnectionUnixUser

      public UInt32 GetConnectionUnixUser(String _connectionName)
      Beschreibung aus Schnittstelle kopiert: DBus
      Get the Unix UID that owns a connection name.
      Angegeben von:
      GetConnectionUnixUser in Schnittstelle DBus
      Parameter:
      _connectionName - The connection name.
      Gibt zurück:
      The Unix UID that it.
    • StartServiceByName

      public UInt32 StartServiceByName(String _name, UInt32 _flags)
      Beschreibung aus Schnittstelle kopiert: DBus
      Start a service. If the given service is not provided by any application, it will be started according to the .service file for that service.
      Angegeben von:
      StartServiceByName in Schnittstelle DBus
      Parameter:
      _name - The service name to start.
      _flags - Unused.
      Gibt zurück:
      DBUS_START_REPLY constants.
    • RequestName

      public UInt32 RequestName(String _name, UInt32 _flags)
      Beschreibung aus Schnittstelle kopiert: DBus
      Request a name on the bus.
      Angegeben von:
      RequestName in Schnittstelle DBus
      Parameter:
      _name - The name to request.
      _flags - DBUS_NAME flags.
      Gibt zurück:
      DBUS_REQUEST_NAME_REPLY constants.
    • ReleaseName

      public UInt32 ReleaseName(String _name)
      Beschreibung aus Schnittstelle kopiert: DBus
      Release a name on the bus.
      Angegeben von:
      ReleaseName in Schnittstelle DBus
      Parameter:
      _name - The name to release.
      Gibt zurück:
      DBUS_RELEASE_NAME_REPLY constants.
    • AddMatch

      public void AddMatch(String _matchrule) throws MatchRuleInvalid
      Beschreibung aus Schnittstelle kopiert: DBus
      Add a match rule. Will cause you to receive messages that aren't directed to you which match this rule.
      Angegeben von:
      AddMatch in Schnittstelle DBus
      Parameter:
      _matchrule - The Match rule as a string. Format Undocumented.
      Löst aus:
      MatchRuleInvalid
    • RemoveMatch

      public void RemoveMatch(String _matchrule) throws MatchRuleInvalid
      Beschreibung aus Schnittstelle kopiert: DBus
      Remove a match rule. Will cause you to stop receiving messages that aren't directed to you which match this rule.
      Angegeben von:
      RemoveMatch in Schnittstelle DBus
      Parameter:
      _matchrule - The Match rule as a string. Format Undocumented.
      Löst aus:
      MatchRuleInvalid
    • ListQueuedOwners

      public String[] ListQueuedOwners(String _name)
      Beschreibung aus Schnittstelle kopiert: DBus
      List the connections currently queued for a name.
      Angegeben von:
      ListQueuedOwners in Schnittstelle DBus
      Parameter:
      _name - The name to query
      Gibt zurück:
      A list of unique connection IDs.
    • GetConnectionUnixProcessID

      public UInt32 GetConnectionUnixProcessID(String _connectionName)
      Beschreibung aus Schnittstelle kopiert: DBus
      Returns the proccess ID associated with a connection.
      Angegeben von:
      GetConnectionUnixProcessID in Schnittstelle DBus
      Parameter:
      _connectionName - The name of the connection
      Gibt zurück:
      The PID of the connection.
    • GetConnectionSELinuxSecurityContext

      public Byte[] GetConnectionSELinuxSecurityContext(String _args)
      Beschreibung aus Schnittstelle kopiert: DBus
      DBUS Specification:
      Returns the security context used by SELinux, in an unspecified
      format. If you know what this means, please contribute
      documentation via the D-Bus bug tracking system.
      This method is on the core DBus interface for historical reasons;
      the same information should be made available via
      the section called "org.freedesktop.DBus.GetConnectionCredentials
      in future.
      Angegeben von:
      GetConnectionSELinuxSecurityContext in Schnittstelle DBus
      Parameter:
      _args - Unique or well-known bus name of the connection to query, such as :12.34 or com.example.tea
      Gibt zurück:
      some sort of string of bytes, not necessarily UTF-8, not including '\0'
    • getObjectPath

      public String getObjectPath()
      Beschreibung aus Schnittstelle kopiert: DBusInterface
      Returns the path of this object.
      Angegeben von:
      getObjectPath in Schnittstelle DBusInterface
      Gibt zurück:
      string
    • Introspect

      public String Introspect()
      Angegeben von:
      Introspect in Schnittstelle Introspectable
      Gibt zurück:
      The XML introspection data for this object
    • Ping

      public void Ping()
      Angegeben von:
      Ping in Schnittstelle Peer
    • ListActivatableNames

      public String[] ListActivatableNames()
      Beschreibung aus Schnittstelle kopiert: DBus
      Returns a list of all names that can be activated on the bus.
      Angegeben von:
      ListActivatableNames in Schnittstelle DBus
      Gibt zurück:
      Array of strings where each string is a bus name
    • GetConnectionCredentials

      public Map<String,Variant<?>> GetConnectionCredentials(String _busName)
      Beschreibung aus Schnittstelle kopiert: DBus
      DBUS Specification:
      Returns as many credentials as possible for the process connected to the server. If unable to determine certain credentials (for instance, because the process is not on the same machine as the bus daemon, or because this version of the bus daemon does not support a particular security framework), or if the values of those credentials cannot be represented as documented here, then those credentials are omitted.

      Keys in the returned dictionary not containing "." are defined by this specification. Bus daemon implementors supporting credentials frameworks not mentioned in this document should either contribute patches to this specification, or use keys containing "." and starting with a reversed domain name.

      Angegeben von:
      GetConnectionCredentials in Schnittstelle DBus
      Parameter:
      _busName - Unique or well-known bus name of the connection to query, such as :12.34 or com.example.tea
      Gibt zurück:
      Credentials
    • GetAdtAuditSessionData

      public Byte[] GetAdtAuditSessionData(String _busName)
      Beschreibung aus Schnittstelle kopiert: DBus
      DBUS Specification:
      Returns auditing data used by Solaris ADT, in an unspecified
      binary format. If you know what this means, please contribute
      documentation via the D-Bus bug tracking system.
      This method is on the core DBus interface for historical reasons;
      the same information should be made available via
      the section called "org.freedesktop.DBus.GetConnectionCredentials"
      in future.
      Angegeben von:
      GetAdtAuditSessionData in Schnittstelle DBus
      Parameter:
      _busName - Unique or well-known bus name of the connection to query, such as :12.34 or com.example.tea
      Gibt zurück:
      auditing data as returned by adt_export_session_data()
    • UpdateActivationEnvironment

      public void UpdateActivationEnvironment(Map<String,String>[] _environment)
      Beschreibung aus Schnittstelle kopiert: DBus
      DBUS Specification:
      Normally, session bus activated services inherit the environment of the bus daemon. This method adds to or modifies that environment when activating services. Some bus instances, such as the standard system bus, may disable access to this method for some or all callers. Note, both the environment variable names and values must be valid UTF-8. There's no way to update the activation environment with data that is invalid UTF-8.
      Angegeben von:
      UpdateActivationEnvironment in Schnittstelle DBus
      Parameter:
      _environment - Environment to add or update
    • GetId

      public String GetId()
      Beschreibung aus Schnittstelle kopiert: DBus
      DBUS Specification:
      Gets the unique ID of the bus. The unique ID here is shared among all addresses the
      bus daemon is listening on (TCP, UNIX domain socket, etc.) and its format is described in
      the section called "UUIDs”.
      Each address the bus is listening on also has its own unique
      ID, as described in the section called "Server Addresses”. The per-bus and per-address IDs are not related.
      There is also a per-machine ID, described in the section called "org.freedesktop.DBus.Peer and returned by org.freedesktop.DBus.Peer.GetMachineId().
      For a desktop session bus, the bus ID can be used as a way to uniquely identify a user's session.
      Angegeben von:
      GetId in Schnittstelle DBus
      Gibt zurück:
      id Unique ID identifying the bus daemon
    • GetMachineId

      public String GetMachineId()
      Angegeben von:
      GetMachineId in Schnittstelle Peer