Class TransportFactory

java.lang.Object
org.freedesktop.dbus.connections.transports.TransportFactory

@Deprecated(forRemoval=true, since="4.0.0") public final class TransportFactory extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
use TransportBuilder instead
Factory to create connection to DBus using unix socket or TCP.
Since:
v3.2.0 - 2019-02-08
Author:
hypfvieh
  • Method Summary

    Modifier and Type
    Method
    Description
    static String
    createDynamicSession(String _busType, boolean _listeningAddress)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Creates a new dynamic bus address for the given bus type.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Creates a new transport encapsulating connection to a UNIX or TCP socket.
    createTransport(BusAddress _address, int _timeout)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Creates a new transport encapsulating connection to a UNIX or TCP socket.
    createTransport(BusAddress _address, int _timeout, boolean _connect)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Creates a new transport encapsulating connection to a UNIX or TCP socket.
    static List<String>
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns a List of all bustypes supported in the current runtime.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • createTransport

      public static AbstractTransport createTransport(BusAddress _address, int _timeout, boolean _connect) throws IOException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Creates a new transport encapsulating connection to a UNIX or TCP socket.
      Parameters:
      _address - Address parameter
      _timeout - timeout in milliseconds
      _connect - open the connection before return
      Returns:
      AbstractTransport
      Throws:
      IOException - when transport could not be created
    • createDynamicSession

      public static String createDynamicSession(String _busType, boolean _listeningAddress)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Creates a new dynamic bus address for the given bus type.
      Parameters:
      _busType - bus type (e.g. UNIX or TCP), never null
      _listeningAddress - true if a listening (server) address should be created, false otherwise
      Returns:
      String containing BusAddress or null
    • getRegisteredBusTypes

      public static List<String> getRegisteredBusTypes()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns a List of all bustypes supported in the current runtime.
      Returns:
      List, maybe empty
    • createTransport

      public static AbstractTransport createTransport(BusAddress _address) throws IOException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Creates a new transport encapsulating connection to a UNIX or TCP socket.
      Parameters:
      _address - Address parameter
      Returns:
      AbstractTransport
      Throws:
      IOException - when transport could not be created
    • createTransport

      public static AbstractTransport createTransport(BusAddress _address, int _timeout) throws IOException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Creates a new transport encapsulating connection to a UNIX or TCP socket.
      Parameters:
      _address - Address parameter
      _timeout - timeout in milliseconds
      Returns:
      AbstractTransport
      Throws:
      IOException - when transport could not be created