public class SubmitMulti extends Request
Represents SUBMIT_MULTI request PDU
commandID, commandStatus, MIN_SIZE, sequenceNumber
Constructor and Description |
---|
SubmitMulti() |
SubmitMulti(java.io.DataInput in) |
Modifier and Type | Method and Description |
---|---|
void |
addDestAddress(Address address) |
void |
addDestAddress(java.lang.String distributionListName) |
protected boolean |
bodyEquals(PDU pdu)
NOTE that the order/duplicates of destAddresses 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 destAddresses 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() |
Response |
createResponse(int status)
Create a response of the appropriate type.
|
byte |
getDataCoding() |
java.util.List<java.lang.Object> |
getDestAddresses() |
byte |
getEsmClass() |
int |
getNumberOfDests() |
byte |
getPriorityFlag() |
byte |
getProtocolID() |
byte |
getRegisteredDelivery() |
byte |
getReplaceIfPresentFlag() |
java.lang.String |
getScheduleDeliveryTime() |
java.lang.String |
getServiceType() |
ShortMessage |
getShortMessage() |
byte |
getSmDefaultMsgID() |
Address |
getSourceAddress() |
java.lang.String |
getValidityPeriod() |
void |
setDataCoding(byte dataCoding) |
void |
setEsmClass(byte esmClass) |
void |
setPriorityFlag(byte priorityFlag) |
void |
setProtocolID(byte protocolID) |
void |
setRegisteredDelivery(byte registeredDelivery) |
void |
setReplaceIfPresentFlag(byte replaceIfPresentFlag) |
void |
setScheduleDeliveryTime(java.lang.String time) |
void |
setServiceType(java.lang.String type) |
void |
setShortMessage(ShortMessage shortMessage) |
void |
setSmDefaultMsgID(byte smDefaultMsgID) |
void |
setSourceAddress(Address address) |
void |
setValidityPeriod(java.lang.String period) |
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 SubmitMulti()
public SubmitMulti(java.io.DataInput in) throws java.io.IOException
java.io.IOException
public java.lang.String getServiceType()
public void setServiceType(java.lang.String type) throws SmppStringLengthException
SmppStringLengthException
public Address getSourceAddress()
public void setSourceAddress(Address address) throws SmppStringLengthException
SmppStringLengthException
public int getNumberOfDests()
public java.util.List<java.lang.Object> getDestAddresses()
public void addDestAddress(Address address) throws SmppStringLengthException, SmppTooManyValuesException
public void addDestAddress(java.lang.String distributionListName) throws SmppStringLengthException, SmppTooManyValuesException
public byte getEsmClass()
public void setEsmClass(byte esmClass)
public byte getProtocolID()
public void setProtocolID(byte protocolID)
public byte getPriorityFlag()
public void setPriorityFlag(byte priorityFlag)
public java.lang.String getScheduleDeliveryTime()
public void setScheduleDeliveryTime(java.lang.String time) throws SmppDateFormatException
SmppDateFormatException
public java.lang.String getValidityPeriod()
public void setValidityPeriod(java.lang.String period) throws SmppDateFormatException
SmppDateFormatException
public byte getRegisteredDelivery()
public void setRegisteredDelivery(byte registeredDelivery)
public byte getReplaceIfPresentFlag()
public void setReplaceIfPresentFlag(byte replaceIfPresentFlag)
public byte getDataCoding()
public void setDataCoding(byte dataCoding)
public byte getSmDefaultMsgID()
public void setSmDefaultMsgID(byte smDefaultMsgID)
public ShortMessage getShortMessage()
public void setShortMessage(ShortMessage shortMessage)
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 destAddresses is insignificant in terms of the comparison result.
bodyEquals
in class PDU
protected final int bodyHashCode()
NOTE that the order/duplicates of destAddresses is insignificant in terms of the resulting hash code value.
bodyHashCode
in class PDU
public Response createResponse(int status)
Request
Create a response of the appropriate type. Subclasses override to return correct type.
Implementations MUST set the response sequence number to be the same as the request sequence number.
createResponse
in class Request
status
- the value for the responses’ command_status field