Class NativeTransportProvider
java.lang.Object
org.freedesktop.dbus.transport.jre.NativeTransportProvider
- All Implemented Interfaces:
ITransportProvider
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateDynamicSessionAddress(boolean _listeningSocket) Creates a new (dynamic) session for this transport.createTransport(BusAddress _address, TransportConfig _config) Creates a new instance of this transport service using the given bus address.Type of transport.Name of the transport implementation.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.freedesktop.dbus.spi.transport.ITransportProvider
createTransport
-
Constructor Details
-
NativeTransportProvider
public NativeTransportProvider()
-
-
Method Details
-
getTransportName
Description copied from interface:ITransportProviderName of the transport implementation.- Specified by:
getTransportNamein interfaceITransportProvider- Returns:
- String, should not be null or empty
-
createTransport
public AbstractTransport createTransport(BusAddress _address, TransportConfig _config) throws TransportConfigurationException Description copied from interface:ITransportProviderCreates a new instance of this transport service using the given bus address.If transport cannot be created because bus address type is not supported,
nullshould be returned. If initialization fails because of any other error, throw aTransportConfigurationException.- Specified by:
createTransportin interfaceITransportProvider- Parameters:
_address- bus address_config- configuration for this transport- Returns:
- transport instance or null
- Throws:
TransportConfigurationException
-
getSupportedBusType
Description copied from interface:ITransportProviderType of transport. Should return an identifier for the supported socket type (e.g. UNIX for unix socket, TCP for tcp sockets).- Specified by:
getSupportedBusTypein interfaceITransportProvider- Returns:
- String, never null
-
createDynamicSessionAddress
Description copied from interface:ITransportProviderCreates a new (dynamic) session for this transport.- Specified by:
createDynamicSessionAddressin interfaceITransportProvider- Parameters:
_listeningSocket- true when listening address should be created- Returns:
- String containing bus address
-