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

Class SdlSession2

Hierarchy

java.lang.Object
     com.smartdevicelink.SdlConnection.SdlSession

Package
com.smartdevicelink.SdlConnection
All Implemented Interfaces
com.smartdevicelink.protocol.ISdlProtocol

Quick Jump

Fields
Constructors
Methods

Fields

sdlProtocol

protected final com.smartdevicelink.protocol.SdlProtocol sdlProtocol

Inherited Fields

From Class Fields
com.smartdevicelink.SdlConnection.SdlSession BUFF_READ_SIZE, transportConfig, sessionListener, lockScreenMan, sdlSecurity, desiredVideoParams, acceptedVideoParams, sessionId, sessionHashId, serviceListeners, encryptedServices

Constructors

SdlSession2( ISdlConnectionListener listener, MultiplexTransportConfig config )

public SdlSession2(ISdlConnectionListener listener,MultiplexTransportConfig config)

Parameters

listener
config

Methods

createSession( byte protocolVersion, ISdlConnectionListener listener, BaseTransportConfig btConfig )

Deprecated

public static com.smartdevicelink.SdlConnection.SdlSession2 createSession(byte protocolVersion,ISdlConnectionListener listener,BaseTransportConfig btConfig)

Parameters

protocolVersion
listener
btConfig

getSdlConnection()

Deprecated

public com.smartdevicelink.SdlConnection.SdlConnection getSdlConnection()

getMtu()

public int getMtu()

getMtu( SessionType type )

public long getMtu(SessionType type)

Parameters

type

close()

public void close()

startService( SessionType serviceType, byte sessionID, boolean isEncrypted )

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

Parameters

serviceType
sessionID
isEncrypted

endService( SessionType serviceType, byte sessionID )

public void endService(SessionType serviceType,byte sessionID)

Parameters

serviceType
sessionID

getBroadcastComment( BaseTransportConfig myTransport )

public java.lang.String getBroadcastComment(BaseTransportConfig myTransport)

Parameters

myTransport

startSession()

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

Throws

sendMessage( ProtocolMessage msg )

public void sendMessage(ProtocolMessage msg)

Parameters

msg

getCurrentTransportType()

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

getIsConnected()

public boolean getIsConnected()

shutdown( String info )

public void shutdown(String info)

Parameters

info

onTransportDisconnected( String info, boolean altTransportAvailable, MultiplexTransportConfig transportConfig )

public void onTransportDisconnected(String info,boolean altTransportAvailable,MultiplexTransportConfig transportConfig)

Parameters

info
altTransportAvailable
transportConfig

getProtocolVersion()

Get the current protocol version used by this session

public com.smartdevicelink.util.Version getProtocolVersion()

onProtocolMessageBytesToSend( SdlPacket packet )

public void onProtocolMessageBytesToSend(SdlPacket packet)

Parameters

packet

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

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

Parameters

sessionType
sessionID
version
correlationID
rejectedParams

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

sendHeartbeat( IHeartbeatMonitor monitor )

public void sendHeartbeat(IHeartbeatMonitor monitor)

Parameters

monitor

heartbeatTimedOut( IHeartbeatMonitor monitor )

public void heartbeatTimedOut(IHeartbeatMonitor monitor)

Parameters

monitor

onHeartbeatTimedOut( byte sessionId )

public void onHeartbeatTimedOut(byte sessionId)

Parameters

sessionId

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

onSecurityInitialized()

public void onSecurityInitialized()

stopStream( SessionType serviceType )

public void stopStream(SessionType serviceType)

Parameters

serviceType

isTransportForServiceAvailable( SessionType sessionType )

Check to see if a transport is available to start/use the supplied service.

public boolean isTransportForServiceAvailable(SessionType sessionType)

Parameters

sessionType
the session that should be checked for transport availability

clearConnection()

Deprecated

public void clearConnection()

removeConnection( SdlConnection connection )

Deprecated

public static boolean removeConnection(SdlConnection connection)

Parameters

connection

checkForOpenMultiplexConnection( SdlConnection connection )

Deprecated

public void checkForOpenMultiplexConnection(SdlConnection connection)

Parameters

connection

Inherited Methods

From Class Methods
com.smartdevicelink.SdlConnection.SdlSession createSession, getTransportConfig, getLockScreenMan, getOutgoingHeartbeatMonitor, getIncomingHeartbeatMonitor, setOutgoingHeartbeatMonitor, setIncomingHeartbeatMonitor, getSessionHashId, getSessionId, getSdlConnection, getMtu, getMtu, close, startStream, startStream, startVideoStream, startAudioStream, startRPCStream, startRPCStream, pauseRPCStream, resumeRPCStream, stopRPCStream, stopAudioStream, stopVideoStream, pauseAudioStream, pauseVideoStream, resumeAudioStream, resumeVideoStream, createOpenGLInputSurface, startEncoder, releaseEncoder, drainEncoder, sendStreamPacket, setSdlSecurity, getSdlSecurity, startService, endService, processControlService, getBroadcastComment, startSession, initialiseSession, sendMessage, getCurrentTransportType, getIsConnected, isServiceProtected, onTransportDisconnected, onTransportDisconnected, onTransportError, onProtocolMessageReceived, onHeartbeatTimedOut, onProtocolSessionStarted, onProtocolSessionEnded, onProtocolError, sendHeartbeat, heartbeatTimedOut, onProtocolSessionStartedNACKed, onProtocolSessionEndedNACKed, onProtocolServiceDataACK, onSecurityInitialized, clearConnection, checkForOpenMultiplexConnection, removeConnection, addServiceListener, removeServiceListener, getServiceListeners, setDesiredVideoParams, getDesiredVideoParams, setAcceptedVideoParams, getAcceptedVideoParams, getProtocolVersion, isTransportForServiceAvailable
java.lang.Object getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize
View on GitHub.com
Previous Section Next Section