Class TcpTransportProvider
- java.lang.Object
-
- org.freedesktop.dbus.transport.tcp.TcpTransportProvider
-
- All Implemented Interfaces:
ITransportProvider
public class TcpTransportProvider extends java.lang.Object implements ITransportProvider
-
-
Field Summary
Fields Modifier and Type Field Description static intTCP_CONNECT_TIMEOUT
-
Constructor Summary
Constructors Constructor Description TcpTransportProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringcreateDynamicSessionAddress(boolean _listeningSocket)Creates a new (dynamic) session for this transport.AbstractTransportcreateTransport(BusAddress _address, TransportConfig _config)Creates a new instance of this transport service using the given bus address.java.lang.StringgetSupportedBusType()Type of transport.java.lang.StringgetTransportName()Name of the transport implementation.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.freedesktop.dbus.spi.transport.ITransportProvider
createTransport
-
-
-
-
Field Detail
-
TCP_CONNECT_TIMEOUT
public static final int TCP_CONNECT_TIMEOUT
- See Also:
- Constant Field Values
-
-
Method Detail
-
getTransportName
public java.lang.String 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
public java.lang.String 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
public java.lang.String createDynamicSessionAddress(boolean _listeningSocket)
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
-
-