Class SubmitMulti
- java.lang.Object
-
- com.opencloud.slee.resources.smpp.pdu.ByteData
-
- com.opencloud.slee.resources.smpp.pdu.PDU
-
- com.opencloud.slee.resources.smpp.pdu.Request
-
- com.opencloud.slee.resources.smpp.pdu.SubmitMulti
-
- All Implemented Interfaces:
com.opencloud.util.FastSerializable
,Externalizable
,Serializable
public class SubmitMulti extends Request
Represents SUBMIT_MULTI request PDU- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.opencloud.slee.resources.smpp.pdu.PDU
commandID, commandStatus, MIN_SIZE, sequenceNumber
-
-
Constructor Summary
Constructors Constructor Description SubmitMulti()
SubmitMulti(DataInput in)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addDestAddress(Address address)
void
addDestAddress(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(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(ByteBuffer buf)
Write PDU body (not including header or TLVs) to a ByteBuffer.protected String
bodyToString()
Response
createResponse(int status)
Create a response of the appropriate type.byte
getDataCoding()
List<Object>
getDestAddresses()
byte
getEsmClass()
int
getNumberOfDests()
byte
getPriorityFlag()
byte
getProtocolID()
byte
getRegisteredDelivery()
byte
getReplaceIfPresentFlag()
String
getScheduleDeliveryTime()
String
getServiceType()
ShortMessage
getShortMessage()
byte
getSmDefaultMsgID()
Address
getSourceAddress()
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(String time)
void
setServiceType(String type)
void
setShortMessage(ShortMessage shortMessage)
void
setSmDefaultMsgID(byte smDefaultMsgID)
void
setSourceAddress(Address address)
void
setValidityPeriod(String period)
-
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
-
SubmitMulti
public SubmitMulti()
-
SubmitMulti
public SubmitMulti(DataInput in) throws IOException
- Throws:
IOException
-
-
Method Detail
-
getServiceType
public String getServiceType()
-
setServiceType
public void setServiceType(String type) throws SmppStringLengthException
- Throws:
SmppStringLengthException
-
getSourceAddress
public Address getSourceAddress()
-
setSourceAddress
public void setSourceAddress(Address address) throws SmppStringLengthException
- Throws:
SmppStringLengthException
-
getNumberOfDests
public int getNumberOfDests()
-
addDestAddress
public void addDestAddress(Address address) throws SmppStringLengthException, SmppTooManyValuesException
-
addDestAddress
public void addDestAddress(String distributionListName) throws SmppStringLengthException, SmppTooManyValuesException
-
getEsmClass
public byte getEsmClass()
-
setEsmClass
public void setEsmClass(byte esmClass)
-
getProtocolID
public byte getProtocolID()
-
setProtocolID
public void setProtocolID(byte protocolID)
-
getPriorityFlag
public byte getPriorityFlag()
-
setPriorityFlag
public void setPriorityFlag(byte priorityFlag)
-
getScheduleDeliveryTime
public String getScheduleDeliveryTime()
-
setScheduleDeliveryTime
public void setScheduleDeliveryTime(String time) throws SmppDateFormatException
- Throws:
SmppDateFormatException
-
getValidityPeriod
public String getValidityPeriod()
-
setValidityPeriod
public void setValidityPeriod(String period) throws SmppDateFormatException
- Throws:
SmppDateFormatException
-
getRegisteredDelivery
public byte getRegisteredDelivery()
-
setRegisteredDelivery
public void setRegisteredDelivery(byte registeredDelivery)
-
getReplaceIfPresentFlag
public byte getReplaceIfPresentFlag()
-
setReplaceIfPresentFlag
public void setReplaceIfPresentFlag(byte replaceIfPresentFlag)
-
getDataCoding
public byte getDataCoding()
-
setDataCoding
public void setDataCoding(byte dataCoding)
-
getSmDefaultMsgID
public byte getSmDefaultMsgID()
-
setSmDefaultMsgID
public void setSmDefaultMsgID(byte smDefaultMsgID)
-
getShortMessage
public ShortMessage getShortMessage()
-
setShortMessage
public void setShortMessage(ShortMessage shortMessage)
-
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 destAddresses is insignificant in terms of the comparison result.- Overrides:
bodyEquals
in classPDU
-
bodyHashCode
protected final int bodyHashCode()
NOTE that the order/duplicates of destAddresses is insignificant in terms of the resulting hash code value.- Overrides:
bodyHashCode
in classPDU
-
createResponse
public Response createResponse(int status)
Description copied from class: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.- Specified by:
createResponse
in classRequest
- Parameters:
status
- the value for the responses' command_status field- Returns:
- the response corresponding to this request, or null if there is no appropriate response type (eg. outbind, alert_notification).
-
-