SubmitMulti
Corresponding SMPP Command: submit_multi
Extends: BaseSm<SubmitMultiResp>
SubmitMulti represents the SMPP submit_multi command. It is used by an ESME to send a short message to multiple destination addresses (either multiple mobile stations or a distribution list). Unlike SubmitSm, this class supports broadcasting the message in a single PDU.
Fields:
SME_ADDRESS: Tag used for individual SME addresses.
DISTRIBUTION_LIST_NAME: Tag used for named distribution lists.
Fields (Inherited from Pdu)
PDU_HEADER_LENGTH, PDU_INT_LENGTH
Constructor:
public SubmitMulti()
Initializes a SubmitMulti instance with default values. Use setters to define message content and destination(s).
Methods:
SubmitMultiResp createResponse() | Creates a SubmitMultiResp in reply to this request. |
Class<SubmitMultiResp> getResponseClass() | Returns the associated response class. |
Address getDestAddress() | Returns the primary destination address (overrides BaseSm). |
void setDestAddress(Address value) | Sets the primary destination address (overrides BaseSm). |
void addDestAddresses(Address address) | Adds a recipient address. Throws SmppInvalidArgumentException if invalid. |
void addDestDestributionListName(String name) | Adds a distribution list name to the destination set. |
List<Address> getDestAddresses() | Returns a list of all added destination addresses. |
List<String> getDestDestributionListName() | Returns a list of all added distribution list names. |
int getNumberOfDest() | Returns the number of total destinations added. |
void readBody(ByteBuf buffer) | Deserializes the PDU body (overrides BaseSm). |
void writeBody(ByteBuf buffer) | Serializes the PDU body (overrides BaseSm). |
int calculateByteSizeOfBody() | Calculates the total size of the body (overrides BaseSm). |
Methods inherited from class com.mobius.software.protocols.smpp.BaseSm |
|
appendBodyToString, getDataCoding, getDefaultMsgId, getEsmClass, getPriority, getProtocolId, getRegisteredDelivery, getReplaceIfPresent, getScheduleDeliveryTime, getServiceType, getShortMessage, getShortMessageLength, getSourceAddress, getValidityPeriod, setDataCoding, setDefaultMsgId, 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!