Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Documentation
Sidebar

Class SdlConnection

Hierarchy

java.lang.Object

Package
com.smartdevicelink.SdlConnection
All Implemented Interfaces
com.smartdevicelink.protocol.IProtocolListener, com.smartdevicelink.transport.ITransportListener

Quick Jump

Fields
Constructors
Methods

Fields

cachedMultiConfig

protected static com.smartdevicelink.transport.MultiplexTransportConfig cachedMultiConfig

Constructors

SdlConnection( BaseTransportConfig transportConfig )

Constructor.

public SdlConnection(BaseTransportConfig transportConfig)

Parameters

transportConfig
Transport configuration for this connection.

SdlConnection( BaseTransportConfig transportConfig, RouterServiceValidator rsvp )

protected SdlConnection(BaseTransportConfig transportConfig,RouterServiceValidator rsvp)

Parameters

transportConfig
rsvp

Methods

getWiProProtocol()

public com.smartdevicelink.protocol.AbstractProtocol getWiProProtocol()

startTransport()

public void startTransport() throws com.smartdevicelink.exception.SdlException

Throws

getIsConnected()

public java.lang.Boolean getIsConnected()

getBroadcastComment()

public java.lang.String getBroadcastComment()

sendMessage( ProtocolMessage msg )

public void sendMessage(ProtocolMessage msg)

Parameters

msg

onTransportPacketReceived( SdlPacket packet )

public void onTransportPacketReceived(SdlPacket packet)

Parameters

packet

onTransportConnected()

public void onTransportConnected()

onTransportDisconnected( String info )

public void onTransportDisconnected(String info)

Parameters

info

onTransportError( String info, Exception e )

public void onTransportError(String info,Exception e)

Parameters

info
e

onProtocolMessageBytesToSend( SdlPacket packet )

public void onProtocolMessageBytesToSend(SdlPacket packet)

Parameters

packet

onProtocolMessageReceived( ProtocolMessage msg )

public void onProtocolMessageReceived(ProtocolMessage msg)

Parameters

msg

onProtocolSessionStarted( SessionType sessionType, byte sessionID, byte version, String correlationID, int hashID, boolean isEncrypted )

public void onProtocolSessionStarted(SessionType sessionType,byte sessionID,byte version,String correlationID,int hashID,boolean isEncrypted)

Parameters

sessionType
sessionID
version
correlationID
hashID
isEncrypted

onProtocolSessionNACKed( SessionType sessionType, byte sessionID, byte version, String correlationID, java.util.List<java.lang.String> rejectedParams )

public void onProtocolSessionNACKed(SessionType sessionType,byte sessionID,byte version,String correlationID,java.util.List<java.lang.String> rejectedParams)

Parameters

sessionType
sessionID
version
correlationID
rejectedParams

onProtocolSessionEnded( SessionType sessionType, byte sessionID, String correlationID )

public void onProtocolSessionEnded(SessionType sessionType,byte sessionID,String correlationID)

Parameters

sessionType
sessionID
correlationID

onProtocolError( String info, Exception e )

public void onProtocolError(String info,Exception e)

Parameters

info
e

getCurrentTransportType()

Gets type of transport currently used by this connection.

public com.smartdevicelink.transport.enums.TransportType getCurrentTransportType()

startService( SessionType sessionType, byte sessionID, boolean isEncrypted )

public void startService(SessionType sessionType,byte sessionID,boolean isEncrypted)

Parameters

sessionType
sessionID
isEncrypted

endService( SessionType sessionType, byte sessionID )

public void endService(SessionType sessionType,byte sessionID)

Parameters

sessionType
sessionID

sendHeartbeat( SdlSession mySession )

public void sendHeartbeat(SdlSession mySession)

Parameters

mySession

unregisterSession( SdlSession registerListener )

public void unregisterSession(SdlSession registerListener)

Parameters

registerListener

findSessionById( byte id )

public com.smartdevicelink.SdlConnection.SdlSession findSessionById(byte id)

Parameters

id

getRegisterCount()

public int getRegisterCount()

onProtocolHeartbeat( SessionType sessionType, byte sessionID )

public void onProtocolHeartbeat(SessionType sessionType,byte sessionID)

Parameters

sessionType
sessionID

onProtocolHeartbeatACK( SessionType sessionType, byte sessionID )

public void onProtocolHeartbeatACK(SessionType sessionType,byte sessionID)

Parameters

sessionType
sessionID

onResetOutgoingHeartbeat( SessionType sessionType, byte sessionID )

public void onResetOutgoingHeartbeat(SessionType sessionType,byte sessionID)

Parameters

sessionType
sessionID

onResetIncomingHeartbeat( SessionType sessionType, byte sessionID )

public void onResetIncomingHeartbeat(SessionType sessionType,byte sessionID)

Parameters

sessionType
sessionID

forceHardwareConnectEvent( TransportType type )

public void forceHardwareConnectEvent(TransportType type)

Parameters

type

enableLegacyMode( boolean enable, TransportType type )

public static void enableLegacyMode(boolean enable,TransportType type)

Parameters

enable
type

isLegacyModeEnabled()

public static boolean isLegacyModeEnabled()

onProtocolSessionEndedNACKed( SessionType sessionType, byte sessionID, String correlationID )

public void onProtocolSessionEndedNACKed(SessionType sessionType,byte sessionID,String correlationID)

Parameters

sessionType
sessionID
correlationID

onProtocolServiceDataACK( SessionType serviceType, int dataSize, byte sessionID )

public void onProtocolServiceDataACK(SessionType serviceType,int dataSize,byte sessionID)

Parameters

serviceType
dataSize
sessionID

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