Version

CancelSm

Corresponding SMPP Command: cancel_sm
Extends: PduRequest<CancelSmResp>
CancelSm represents the SMPP cancel_sm command. It is used by an ESME to cancel a previously submitted message that has not yet been delivered. The message is identified using its message_id, source address, destination address, and service type.

Fields (Inherited from Pdu)

PDU_HEADER_LENGTH, PDU_INT_LENGTH

Constructor:

public CancelSm()
Initializes a new CancelSm instance. You must set identifiers and addressing fields before use.

Methods:

CancelSmResp createResponse() Creates a corresponding CancelSmResp for this request.
Class<CancelSmResp> getResponseClass() Returns the expected response class.
String getServiceType() Gets the service type (used to scope cancellation within a service domain).
void setServiceType(String value) Sets the service type string.
String getMessageId() Returns the message ID of the original message to cancel.
void setMessageId(String value) Sets the message ID for cancellation.
Address getSourceAddress() Gets the address of the original sender.
void setSourceAddress(Address value) Sets the source address.
Address getDestAddress() Gets the original destination address.
void setDestAddress(Address value) Sets the destination address.
void readBody(ByteBuf buffer) Deserializes the PDU body from binary.
void writeBody(ByteBuf buffer) Serializes the PDU body into binary.
int calculateByteSizeOfBody() Calculates the total size of the body content.
void appendBodyToString(StringBuilder buffer) Appends a readable representation of the body (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