java.lang.Object
protected final com.smartdevicelink.protocol.SdlProtocolBase sdlProtocol
protected final com.smartdevicelink.transport.BaseTransportConfig transportConfig
protected com.smartdevicelink.session.ISdlSessionListener sessionListener
protected com.smartdevicelink.security.SdlSecurityBase sdlSecurity
protected com.smartdevicelink.streaming.video.VideoStreamingParameters desiredVideoParams
protected com.smartdevicelink.streaming.video.VideoStreamingParameters acceptedVideoParams
protected int sessionId
protected java.util.HashMap serviceListeners
protected final java.util.concurrent.CopyOnWriteArrayList encryptedServices
public BaseSdlSession(ISdlSessionListener listener,BaseTransportConfig config)
protected abstract com.smartdevicelink.protocol.SdlProtocolBase getSdlProtocolImplementation()
public int getMtu()
public long getMtu(SessionType type)
public void close()
public void startService(SessionType serviceType,boolean isEncrypted)
public void endService(SessionType serviceType)
public void startSession() throws com.smartdevicelink.exception.SdlException
public void sendMessage(ProtocolMessage msg)
public com.smartdevicelink.transport.enums.TransportType getCurrentTransportType()
public boolean getIsConnected()
Get the current protocol version used by this session
public com.smartdevicelink.util.Version getProtocolVersion()
public com.smartdevicelink.transport.BaseTransportConfig getTransportConfig()
public void setSdlSecurity(SdlSecurityBase sec)
protected void processControlService(ProtocolMessage msg)
Extracts the SystemInfo out of a packet
protected com.smartdevicelink.util.SystemInfo extractSystemInfo(SdlPacket packet)
public boolean isServiceProtected(SessionType sType)
public void addServiceListener(SessionType serviceType,ISdlServiceListener sdlServiceListener)
public boolean removeServiceListener(SessionType serviceType,ISdlServiceListener sdlServiceListener)
public java.util.HashMap getServiceListeners()
public void setDesiredVideoParams(VideoStreamingParameters params)
public com.smartdevicelink.streaming.video.VideoStreamingParameters getAcceptedVideoParams()
public void onProtocolMessageReceived(ProtocolMessage msg)
public abstract void onServiceStarted(SdlPacket packet,SessionType sessionType,int sessionID,Version version,boolean isEncrypted)
public abstract void onServiceEnded(SdlPacket packet,SessionType sessionType,int sessionID)
public abstract void onServiceError(SdlPacket packet,SessionType sessionType,int sessionID,String error)
public void onProtocolError(String info,Exception e)
public int getSessionId()
public void shutdown(String info)
public void onTransportDisconnected(String info,boolean altTransportAvailable,BaseTransportConfig transportConfig)
public com.smartdevicelink.security.SdlSecurityBase getSdlSecurity()
Returns the currently set desired video streaming parameters. If there haven't been any set, the default options will be returned and set for this instance.
public com.smartdevicelink.streaming.video.VideoStreamingParameters getDesiredVideoParams()
public void setAcceptedVideoParams(VideoStreamingParameters params)
public void onAuthTokenReceived(String authToken)
public void onSecurityInitialized()
Check to see if a transport is available to start/use the supplied service.
public boolean isTransportForServiceAvailable(SessionType sessionType)
Retrieves list of the active transports
public java.util.List getActiveTransports()
From Class | Methods |
---|---|
java.lang.Object | getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize |