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

Class SdlPacketFactory

Hierarchy

java.lang.Object

Package
com.smartdevicelink.protocol

Constructors

SdlPacketFactory()

public SdlPacketFactory()

Methods

createStartSession( SessionType serviceType, int messageID, byte version, byte sessionID, boolean encrypted )

public static com.smartdevicelink.protocol.SdlPacket createStartSession(SessionType serviceType,int messageID,byte version,byte sessionID,boolean encrypted)

Parameters

serviceType
messageID
version
sessionID
encrypted

createHeartbeat( SessionType serviceType, byte sessionID, byte version )

public static com.smartdevicelink.protocol.SdlPacket createHeartbeat(SessionType serviceType,byte sessionID,byte version)

Parameters

serviceType
sessionID
version

createHeartbeatACK( SessionType serviceType, byte sessionID, byte version )

public static com.smartdevicelink.protocol.SdlPacket createHeartbeatACK(SessionType serviceType,byte sessionID,byte version)

Parameters

serviceType
sessionID
version

createStartSessionACK( SessionType serviceType, byte sessionID, int messageID, byte version )

public static com.smartdevicelink.protocol.SdlPacket createStartSessionACK(SessionType serviceType,byte sessionID,int messageID,byte version)

Parameters

serviceType
sessionID
messageID
version

createStartSessionNACK( SessionType serviceType, byte sessionID, int messageID, byte version )

public static com.smartdevicelink.protocol.SdlPacket createStartSessionNACK(SessionType serviceType,byte sessionID,int messageID,byte version)

Parameters

serviceType
sessionID
messageID
version

createEndSession( SessionType serviceType, byte sessionID, int messageID, byte version, byte[] payload )

public static com.smartdevicelink.protocol.SdlPacket createEndSession(SessionType serviceType,byte sessionID,int messageID,byte version,byte[] payload)

Parameters

serviceType
sessionID
messageID
version
payload

createSingleSendData( SessionType serviceType, byte sessionID, int dataLength, int messageID, byte version, byte[] payload, boolean encrypted )

public static com.smartdevicelink.protocol.SdlPacket createSingleSendData(SessionType serviceType,byte sessionID,int dataLength,int messageID,byte version,byte[] payload,boolean encrypted)

Parameters

serviceType
sessionID
dataLength
messageID
version
payload
encrypted

createMultiSendDataFirst( SessionType serviceType, byte sessionID, int messageID, byte version, byte[] payload, boolean encrypted )

public static com.smartdevicelink.protocol.SdlPacket createMultiSendDataFirst(SessionType serviceType,byte sessionID,int messageID,byte version,byte[] payload,boolean encrypted)

Parameters

serviceType
sessionID
messageID
version
payload
encrypted

createMultiSendDataRest( SessionType serviceType, byte sessionID, int dataLength, byte frameSequenceNumber, int messageID, byte version, byte[] payload, int offset, int length, boolean encrypted )

public static com.smartdevicelink.protocol.SdlPacket createMultiSendDataRest(SessionType serviceType,byte sessionID,int dataLength,byte frameSequenceNumber,int messageID,byte version,byte[] payload,int offset,int length,boolean encrypted)

Parameters

serviceType
sessionID
dataLength
frameSequenceNumber
messageID
version
payload
offset
length
encrypted

createRegisterSecondaryTransport( byte sessionID, byte version )

public static com.smartdevicelink.protocol.SdlPacket createRegisterSecondaryTransport(byte sessionID,byte version)

Parameters

sessionID
version

createBinaryFrameHeader( byte rpcType, int functionID, int corrID, int jsonSize )

public static com.smartdevicelink.protocol.BinaryFrameHeader createBinaryFrameHeader(byte rpcType,int functionID,int corrID,int jsonSize)

Parameters

rpcType
functionID
corrID
jsonSize

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