Version
DataSm
Corresponding SMPP Command: submit_multi
Extends: BaseSm<DataSmResp>
DataSm represents the SMPP data_sm command, used to exchange short messages between ESMEs and SMSCs in a lightweight, generic form. It is used for signaling or delivery receipt queries and does not carry a traditional message payload (short_message). Instead, it relies on optional parameters (TLVs) to convey structured data.
Fields (Inherited from Pdu)
PDU_HEADER_LENGTH, PDU_INT_LENGTH
Constructor:
public DataSm()
Initializes a blank DataSm instance. This PDU must be configured via TLVs and standard fields to suit the purpose.
Methods:
DataSmResp createResponse() | Generates a DataSmResp corresponding to this request. |
Class<DataSmResp> getResponseClass() | Returns DataSmResp.class as the expected response type. |
void readBody(ByteBuf buffer) | Deserializes the body from binary format (overrides BaseSm). |
void writeBody(ByteBuf buffer) | Serializes the body into binary format (overrides BaseSm). |
int calculateByteSizeOfBody() | Calculates the byte size of the message body (overrides BaseSm). |
Methods inherited from class com.mobius.software.protocols.smpp.BaseSm |
|
appendBodyToString, getDataCoding, getDefaultMsgId, getDestAddress, getEsmClass, getPriority, getProtocolId, getRegisteredDelivery, getReplaceIfPresent, getScheduleDeliveryTime, getServiceType, getShortMessage, getShortMessageLength, getSourceAddress, getValidityPeriod, setDataCoding, setDefaultMsgId, setDestAddress, setEsmClass, setPriority, setProtocolId, setRegisteredDelivery, setReplaceIfPresent, setScheduleDeliveryTime, setServiceType, setShortMessage, setSourceAddress, setValidityPeriod | |
Methods inherited from class com.mobius.software.protocols.smpp.PduRequest |
|
createGenericNack | |
Methods inherited from class com.mobius.software.protocols.smpp.Pdu |
|
addOptionalParameter, calculateAndSetCommandLength, getCommandId, getCommandLength, getCommandStatus, getName, getOptionalParameter, getOptionalParameterCount, getOptionalParameters, getReferenceObject, getSequenceNumber, hasCommandLengthCalculated, hasOptionalParameter, hasSequenceNumberAssigned, isRequest, isResponse, readOptionalParameters, removeCommandLength, removeOptionalParameter, removeSequenceNumber, setCommandLength, setCommandStatus, setOptionalParameter, setReferenceObject, setSequenceNumber, toString, writeOptionalParameters | |
Methods inherited from class java.lang.Object |
|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Start innovating with Mobius
What's next? Let's talk!