Module org.freedesktop.dbus
Class TransportFactory
java.lang.Object
org.freedesktop.dbus.connections.transports.TransportFactory
Deprecated, for removal: This API element is subject to removal in a future version.
Factory to create connection to DBus using unix socket or TCP.
- Since:
- v3.2.0 - 2019-02-08
- Author:
- hypfvieh
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringcreateDynamicSession(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.static AbstractTransportcreateTransport(BusAddress _address) 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 AbstractTransportcreateTransport(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.static AbstractTransportcreateTransport(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.Deprecated, for removal: This API element is subject to removal in a future version.Returns aListof all bustypes supported in the current runtime.
-
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
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
Deprecated, for removal: This API element is subject to removal in a future version.Returns aListof all bustypes supported in the current runtime.- Returns:
List, maybe empty
-
createTransport
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
-
TransportBuilderinstead