public class QueryBroadcastSMResp extends Response
Represents QUERY_BROADCAST_SM_RESP response PDU
commandID, commandStatus, MIN_SIZE, sequenceNumber
Constructor and Description |
---|
QueryBroadcastSMResp() |
QueryBroadcastSMResp(java.io.DataInput in) |
QueryBroadcastSMResp(int status) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
bodyEquals(PDU pdu)
Compares the body of given PDU with the body (not including header or TLVs) of this PDU for equality.
|
protected void |
bodyFromBuffer(java.nio.ByteBuffer buf)
Read PDU body (not including header or TLVs) from a ByteBuffer.
|
protected int |
bodyHashCode()
Get the hash code value of PDU body (not including header or TLVs).
|
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() |
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 QueryBroadcastSMResp()
public QueryBroadcastSMResp(int status)
public QueryBroadcastSMResp(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
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 boolean bodyEquals(PDU pdu)
PDU
Compares the body of given PDU with the body (not including header or TLVs) of this PDU for equality. Subclasses MUST override this if they have any additional fields in their body, so that PDUs comparison will be performed correctly.
bodyEquals
in class PDU
protected int bodyHashCode()
PDU
Get the hash code value of PDU body (not including header or TLVs). Subclasses MUST override this if they have any additional fields in their body, so that PDU hash code will be calculated correctly.
bodyHashCode
in class PDU