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

Class AbstractProtocol

Hierarchy

java.lang.Object

Package
com.smartdevicelink.protocol
All Known Subclasses
com.smartdevicelink.protocol.WiProProtocol

Quick Jump

Constructors
Methods

Constructors

AbstractProtocol( IProtocolListener protocolListener )

public AbstractProtocol(IProtocolListener protocolListener)

Parameters

protocolListener

Methods

SendMessage( ProtocolMessage msg )

public abstract void SendMessage(ProtocolMessage msg)

Parameters

msg

getMtu()

public abstract int getMtu()

getMtu( SessionType type )

public abstract long getMtu(SessionType type)

Parameters

type

handlePacketReceived( SdlPacket packet )

public abstract void handlePacketReceived(SdlPacket packet)

Parameters

packet

StartProtocolSession( SessionType sessionType )

public abstract void StartProtocolSession(SessionType sessionType)

Parameters

sessionType

StartProtocolService( SessionType sessionType, byte sessionID, boolean isEncrypted )

public abstract void StartProtocolService(SessionType sessionType,byte sessionID,boolean isEncrypted)

Parameters

sessionType
sessionID
isEncrypted

EndProtocolService( SessionType serviceType, byte sessionID )

public abstract void EndProtocolService(SessionType serviceType,byte sessionID)

Parameters

serviceType
sessionID

EndProtocolSession( SessionType sessionType, byte sessionID, int hashID )

public abstract void EndProtocolSession(SessionType sessionType,byte sessionID,int hashID)

Parameters

sessionType
sessionID
hashID

SetHeartbeatSendInterval( int heartbeatSendInterval_ms )

public abstract void SetHeartbeatSendInterval(int heartbeatSendInterval_ms)

Parameters

heartbeatSendInterval_ms

SetHeartbeatReceiveInterval( int heartbeatReceiveInterval_ms )

public abstract void SetHeartbeatReceiveInterval(int heartbeatReceiveInterval_ms)

Parameters

heartbeatReceiveInterval_ms

SendHeartBeat( byte sessionID )

public abstract void SendHeartBeat(byte sessionID)

Parameters

sessionID

SendHeartBeatACK( byte sessionID )

public abstract void SendHeartBeatACK(byte sessionID)

Parameters

sessionID

handleProtocolFrameReceived( SdlPacket packet, WiProProtocol.MessageFrameAssembler assembler )

protected void handleProtocolFrameReceived(SdlPacket packet,WiProProtocol.MessageFrameAssembler assembler)

Parameters

packet
assembler

handlePacketToSend( SdlPacket header )

SdlPacket should have included payload at this point.

protected void handlePacketToSend(SdlPacket header)

Parameters

header

handleProtocolMessageReceived( ProtocolMessage message )

protected void handleProtocolMessageReceived(ProtocolMessage message)

Parameters

message

handleProtocolSessionEndedNACK( SessionType sessionType, byte sessionID, String correlationID )

protected void handleProtocolSessionEndedNACK(SessionType sessionType,byte sessionID,String correlationID)

Parameters

sessionType
sessionID
correlationID

handleProtocolSessionEnded( SessionType sessionType, byte sessionID, String correlationID )

protected void handleProtocolSessionEnded(SessionType sessionType,byte sessionID,String correlationID)

Parameters

sessionType
sessionID
correlationID

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

protected void handleProtocolSessionStarted(SessionType sessionType,byte sessionID,byte version,String correlationID,int hashID,boolean isEncrypted)

Parameters

sessionType
sessionID
version
correlationID
hashID
isEncrypted

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

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

Parameters

sessionType
sessionID
version
correlationID
rejectedParams

handleProtocolError( String string, Exception ex )

protected void handleProtocolError(String string,Exception ex)

Parameters

string
ex

handleProtocolHeartbeat( SessionType sessionType, byte sessionID )

protected void handleProtocolHeartbeat(SessionType sessionType,byte sessionID)

Parameters

sessionType
sessionID

handleProtocolHeartbeatACK( SessionType sessionType, byte sessionID )

protected void handleProtocolHeartbeatACK(SessionType sessionType,byte sessionID)

Parameters

sessionType
sessionID

handleProtocolServiceDataACK( SessionType sessionType, int dataSize, byte sessionID )

protected void handleProtocolServiceDataACK(SessionType sessionType,int dataSize,byte sessionID)

Parameters

sessionType
dataSize
sessionID

onResetIncomingHeartbeat( SessionType sessionType, byte sessionID )

protected void onResetIncomingHeartbeat(SessionType sessionType,byte sessionID)

Parameters

sessionType
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