Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Internet Explorer alert
This browser is not recommended for use with smartdevicelink.com, and may not function properly. Upgrade to a different browser to guarantee support of all features.
close alert
To Top Created with Sketch. To Top
To Bottom Created with Sketch. To Bottom
JavaEE Documentation
TransportManagerBase

Class TransportManagerBase

Hierarchy

java.lang.Object

Package
com.smartdevicelink.transport

Constructors

TransportManagerBase( BaseTransportConfig config, TransportManagerBase.TransportEventListener listener )

public TransportManagerBase(BaseTransportConfig config,TransportManagerBase.TransportEventListener listener)

Constructor Parameters

config
listener

Methods

start()

public abstract void start()

close( long sessionId )

public abstract void close(long sessionId)

Method Parameters

sessionId

isConnected( TransportType transportType, String address )

Check to see if a transport is connected.

public abstract boolean isConnected(TransportType transportType,String address)

Method Parameters

transportType
the transport to have its connection status returned. If `null` is passed in, all transports will be checked and if any are connected a true value will be returned.
address
the address associated with the transport type. If null, the first transport of supplied type will be used to return if connected.

getTransportRecord( TransportType transportType, String address )

Retrieve a transport record with the supplied params

public abstract TransportRecord getTransportRecord(TransportType transportType,String address)

Method Parameters

transportType
the transport to have its connection status returned.
address
the address associated with the transport type. If null, the first transport of supplied type will be returned.

getConnectedTransports()

Retrieves the currently connected transports

public java.util.List getConnectedTransports()

isHighBandwidthAvailable()

public boolean isHighBandwidthAvailable()

updateTransportConfig( BaseTransportConfig config )

public com.smartdevicelink.transport.BaseTransportConfig updateTransportConfig(BaseTransportConfig config)

Method Parameters

config

sendPacket( SdlPacket packet )

public abstract void sendPacket(SdlPacket packet)

Method Parameters

packet

requestNewSession( TransportRecord transportRecord )

Base implementation does nothing and assumes it is not necessary. This method should be overridden in children classes that need to add a prerequest to their transports to make space ready for a new session.

public void requestNewSession(TransportRecord transportRecord)

Method Parameters

transportRecord
the transport that the new session should be assigned to

requestSecondaryTransportConnection( byte sessionId, TransportRecord transportRecord )

public void requestSecondaryTransportConnection(byte sessionId,TransportRecord transportRecord)

Method Parameters

sessionId
transportRecord

Inherited Methods

From Class Methods
java.lang.Object getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize
View on GitHub.com
Previous Section Next Section