Class SubmitMultiResp
- java.lang.Object
-
- com.opencloud.slee.resources.smpp.pdu.ByteData
-
- com.opencloud.slee.resources.smpp.pdu.PDU
-
- com.opencloud.slee.resources.smpp.pdu.Response
-
- com.opencloud.slee.resources.smpp.pdu.SubmitMultiResp
-
- All Implemented Interfaces:
com.opencloud.util.FastSerializable
,Externalizable
,Serializable
public class SubmitMultiResp extends Response
Represents SUBMIT_MULTI_RESP response PDU- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SubmitMultiResp.UnsuccessSME
Represents the "unsuccess_sme" field in a submit_multi_resp PDU.
-
Field Summary
-
Fields inherited from class com.opencloud.slee.resources.smpp.pdu.PDU
commandID, commandStatus, MIN_SIZE, sequenceNumber
-
-
Constructor Summary
Constructors Constructor Description SubmitMultiResp()
SubmitMultiResp(int status)
SubmitMultiResp(DataInput in)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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(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(ByteBuffer buf)
Write PDU body (not including header or TLVs) to a ByteBuffer.protected String
bodyToString()
String
getMessageID()
int
getNumUnsuccess()
List<SubmitMultiResp.UnsuccessSME>
getUnsuccessSME()
Get the list of unsuccessful SMEs for the preceeding submit_multi request.void
setMessageID(String messageID)
-
Methods inherited from class com.opencloud.slee.resources.smpp.pdu.PDU
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
-
Methods inherited from class com.opencloud.slee.resources.smpp.pdu.ByteData
checkCString, checkCString, checkDate, decodeUnsigned, encodeUnsigned, equalCStrings, getCString, getCString, getCStringByteArray, getCStringHashCode, isNullOrEmptyCString, printAsHex, putCString
-
-
-
-
Constructor Detail
-
SubmitMultiResp
public SubmitMultiResp()
-
SubmitMultiResp
public SubmitMultiResp(int status)
-
SubmitMultiResp
public SubmitMultiResp(DataInput in) throws IOException
- Throws:
IOException
-
-
Method Detail
-
getMessageID
public String getMessageID()
-
setMessageID
public void setMessageID(String messageID) throws SmppStringLengthException
- Throws:
SmppStringLengthException
-
getNumUnsuccess
public int getNumUnsuccess()
-
addUnsuccessSME
public void addUnsuccessSME(Address destAddress, int errorCode) throws SmppStringLengthException
- Throws:
SmppStringLengthException
-
getUnsuccessSME
public List<SubmitMultiResp.UnsuccessSME> getUnsuccessSME()
Get the list of unsuccessful SMEs for the preceeding submit_multi request.- Returns:
List
ofSubmitMultiResp.UnsuccessSME
objects.
-
bodyToBuffer
protected void bodyToBuffer(ByteBuffer buf) throws BufferOverflowException
Description copied from class: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).- Overrides:
bodyToBuffer
in classPDU
- Throws:
BufferOverflowException
-
bodyFromBuffer
protected void bodyFromBuffer(ByteBuffer buf) throws BufferUnderflowException, InvalidPDUFieldException
Description copied from class: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).- Overrides:
bodyFromBuffer
in classPDU
- Throws:
BufferUnderflowException
InvalidPDUFieldException
-
bodyToString
protected String bodyToString()
- Overrides:
bodyToString
in classPDU
-
bodySize
protected int bodySize()
Description copied from class: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.
-
bodyEquals
protected final boolean bodyEquals(PDU pdu)
NOTE that the order/duplicates of UnsuccessSMEs is insignificant in terms of the comparison result.- Overrides:
bodyEquals
in classPDU
-
bodyHashCode
protected final int bodyHashCode()
NOTE that the order/duplicates of UnsuccessSMEs is insignificant in terms of the resulting hash code value.- Overrides:
bodyHashCode
in classPDU
-
-