Version

QuerySm

Corresponding SMPP Command: query_sm
Extends: PduRequest<QuerySmResp>
QuerySm represents the SMPP query_sm command, which is used by an ESME to query the delivery status of a previously submitted message. It uses the message ID and source address to identify the original submit_sm request and retrieve its current state.

Fields (Inherited from Pdu)

PDU_HEADER_LENGTH, PDU_INT_LENGTH

Constructor:

public QuerySm()
Creates a new QuerySm request. Set the message ID and source address before submitting.

Methods:

String getMessageId() Returns the message ID of the message being queried.
void setMessageId(String value) Sets the message ID to identify the message to be queried.
Address getSourceAddress() Returns the source address associated with the original message.
void setSourceAddress(Address value) Sets the source address for the query.
QuerySmResp createRespMethods:onse() Creates a corresponding QuerySmResp with status details.
Class<QuerySmResp> getResponseClass() Returns QuerySmResp.class as the expected response type.
void readBody(ByteBuf buffer) Deserializes the body from a binary stream.
void writeBody(ByteBuf buffer) Serializes the body to a binary stream.
int calculateByteSizeOfBody() Calculates the byte length of the request body.
void appendBodyToString(StringBuilder buffer) Appends a readable summary of body fields (for logging/debugging).

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!

Mobius Software

As a company you'll get:

  • Get started quickly

  • Support any business model

  • Join millions of businesses

Questions? websupport@mobius.com