public class SubmitMultiResp extends Response
Represents SUBMIT_MULTI_RESP response PDU
Modifier and Type | Class and Description |
---|---|
static class |
SubmitMultiResp.UnsuccessSME
Represents the “unsuccess_sme” field in a submit_multi_resp PDU.
|
commandID, commandStatus, MIN_SIZE, sequenceNumber
Constructor and Description |
---|
SubmitMultiResp() |
SubmitMultiResp(java.io.DataInput in) |
SubmitMultiResp(int status) |
Modifier and Type | Method and Description |
---|---|
void |
addUnsuccessSME(Address destAddress,
int errorCode) |
protected boolean |
bodyEquals(PDU pdu)
NOTE that the order/duplicates of UnsuccessSMEs is insignificant in terms of the comparison result.
|
protected void |
bodyFromBuffer(java.nio.ByteBuffer buf)
Read PDU body (not including header or TLVs) from a ByteBuffer.
|
protected int |
bodyHashCode()
NOTE that the order/duplicates of UnsuccessSMEs is insignificant in terms of the resulting hash code value.
|
protected int |
bodySize()
Return size (in bytes) of PDU body (not including header or TLVs).
|
protected void |
bodyToBuffer(java.nio.ByteBuffer buf)
Write PDU body (not including header or TLVs) to a ByteBuffer.
|
protected java.lang.String |
bodyToString() |
java.lang.String |
getMessageID() |
int |
getNumUnsuccess() |
java.util.List<SubmitMultiResp.UnsuccessSME> |
getUnsuccessSME()
Get the list of unsuccessful SMEs for the preceeding submit_multi request.
|
void |
setMessageID(java.lang.String messageID) |
addTLV, equals, fromBuffer, fromStream, getAllTLVs, getCommandID, getCommandLength, getCommandStatus, getSequenceNumber, getTLV, hashCode, hasTLV, headerEquals, headerFromBuffer, headerHashCode, headerSize, headerToBuffer, headerToString, readExternal, setCommandID, setCommandStatus, setSequenceNumber, size, tlvEquals, tlvFromBuffer, tlvHashCode, tlvSize, tlvToBuffer, tlvToString, toBuffer, toStream, toString, writeExternal
checkCString, checkCString, checkDate, decodeUnsigned, encodeUnsigned, equalCStrings, getCString, getCString, getCStringByteArray, getCStringHashCode, isNullOrEmptyCString, printAsHex, putCString
public SubmitMultiResp()
public SubmitMultiResp(int status)
public SubmitMultiResp(java.io.DataInput in) throws java.io.IOException
java.io.IOException
public java.lang.String getMessageID()
public void setMessageID(java.lang.String messageID) throws SmppStringLengthException
SmppStringLengthException
public int getNumUnsuccess()
public void addUnsuccessSME(Address destAddress, int errorCode) throws SmppStringLengthException
SmppStringLengthException
public java.util.List<SubmitMultiResp.UnsuccessSME> getUnsuccessSME()
Get the list of unsuccessful SMEs for the preceeding submit_multi request.
List
of SubmitMultiResp.UnsuccessSME
objects.protected void bodyToBuffer(java.nio.ByteBuffer buf) throws java.nio.BufferOverflowException
PDU
Write PDU body (not including header or TLVs) to a ByteBuffer. Subclasses MUST override this if they have any additional fields in their body. Fields must be written in big-endian byte order (the default with ByteBuffer anyway).
bodyToBuffer
in class PDU
java.nio.BufferOverflowException
protected void bodyFromBuffer(java.nio.ByteBuffer buf) throws java.nio.BufferUnderflowException, InvalidPDUFieldException
PDU
Read PDU body (not including header or TLVs) from a ByteBuffer. Subclasses MUST override this if they have any additional fields in their body. Fields are read in big-endian byte order (the default with ByteBuffer anyway).
bodyFromBuffer
in class PDU
java.nio.BufferUnderflowException
InvalidPDUFieldException
protected java.lang.String bodyToString()
bodyToString
in class PDU
protected int bodySize()
PDU
Return size (in bytes) of PDU body (not including header or TLVs). Subclasses MUST override this if they have any additional fields in their body, so that PDU lengths will be calculated correctly.
protected final boolean bodyEquals(PDU pdu)
NOTE that the order/duplicates of UnsuccessSMEs is insignificant in terms of the comparison result.
bodyEquals
in class PDU
protected final int bodyHashCode()
NOTE that the order/duplicates of UnsuccessSMEs is insignificant in terms of the resulting hash code value.
bodyHashCode
in class PDU