org.mobicents.protocols.smpp.message
Class SubmitSM
java.lang.Object
org.mobicents.protocols.smpp.message.SMPPPacket
org.mobicents.protocols.smpp.message.SubmitSM
- All Implemented Interfaces:
- Serializable, Cloneable
- Direct Known Subclasses:
- DeliverSM
public class SubmitSM
- extends SMPPPacket
Submit a message to the SMSC for delivery to a single destination.
- Version:
- $Id: SubmitSM.java 452 2009-01-15 16:56:36Z orank $
- Author:
- amit bhayani, orank
- See Also:
- Serialized Form
| Methods inherited from class org.mobicents.protocols.smpp.message.SMPPPacket |
clone, getCommandId, getCommandStatus, getLength, getSequenceNum, getTLV, getTLVTable, isRequest, isResponse, isSet, readFrom, removeTLV, safeCompare, setCommandStatus, setSequenceNum, setTLV, sizeOf, sizeOf, sizeOf, sizeOf, toString, toString, validate, validateMandatory, validateTLVTable, writeTo, writeTo |
SubmitSM
public SubmitSM()
getDataCoding
public int getDataCoding()
setDataCoding
public void setDataCoding(int dataCoding)
getDefaultMsg
public int getDefaultMsg()
setDefaultMsg
public void setDefaultMsg(int defaultMsg)
getDeliveryTime
public SMPPDate getDeliveryTime()
setDeliveryTime
public void setDeliveryTime(SMPPDate deliveryTime)
getDestination
public Address getDestination()
setDestination
public void setDestination(Address destination)
getEsmClass
public int getEsmClass()
setEsmClass
public void setEsmClass(int esmClass)
getExpiryTime
public SMPPDate getExpiryTime()
setExpiryTime
public void setExpiryTime(SMPPDate expiryTime)
getMessage
public byte[] getMessage()
setMessage
public void setMessage(byte[] message)
getPriority
public int getPriority()
setPriority
public void setPriority(int priority)
getProtocolID
public int getProtocolID()
setProtocolID
public void setProtocolID(int protocolID)
getRegistered
public int getRegistered()
setRegistered
public void setRegistered(int registered)
getReplaceIfPresent
public int getReplaceIfPresent()
setReplaceIfPresent
public void setReplaceIfPresent(int replaceIfPresent)
getServiceType
public String getServiceType()
setServiceType
public void setServiceType(String serviceType)
getSource
public Address getSource()
setSource
public void setSource(Address source)
equals
public boolean equals(Object obj)
- Overrides:
equals in class SMPPPacket
hashCode
public int hashCode()
- Overrides:
hashCode in class SMPPPacket
getMandatorySize
public int getMandatorySize()
- Return the number of bytes this packet would be encoded as to an
OutputStream.
- Overrides:
getMandatorySize in class SMPPPacket
- Returns:
- the number of bytes this packet would encode as.
writeMandatory
protected void writeMandatory(PacketEncoder encoder)
throws IOException
- Description copied from class:
SMPPPacket
- Write the mandatory parameters to a packet encoder.
- Overrides:
writeMandatory in class SMPPPacket
- Parameters:
encoder - The encoder to write mandatory parameters to.
- Throws:
IOException - If an problem occurs while writing.
readMandatory
protected void readMandatory(PacketDecoder decoder)
- Description copied from class:
SMPPPacket
- Read the mandatory parameters from a packet decoder. This default
implementation is empty, parsing no mandatory parameters. Sub-classes
may override this as they wish.
- Overrides:
readMandatory in class SMPPPacket
- Parameters:
decoder - The decoder to read fields from.
Copyright © 2011 Mobicents. All Rights Reserved.