org.mobicents.protocols.smpp.message
Class QueryMsgDetailsResp

java.lang.Object
  extended by org.mobicents.protocols.smpp.message.SMPPPacket
      extended by org.mobicents.protocols.smpp.message.QueryMsgDetailsResp
All Implemented Interfaces:
Serializable, Cloneable

public class QueryMsgDetailsResp
extends SMPPPacket

Response to Query message details. Gives all details of a specified message at the SMSC.

Version:
$Id: QueryMsgDetailsResp.java 457 2009-01-15 17:37:42Z orank $
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.mobicents.protocols.smpp.message.SMPPPacket
commandId, commandStatus, sequenceNum, tlvTable
 
Constructor Summary
QueryMsgDetailsResp()
          Construct a new QueryMsgDetailsResp.
QueryMsgDetailsResp(SMPPPacket request)
          Create a new QueryMsgDetailsResp packet in response to a BindReceiver.
 
Method Summary
 int addDestination(Address address)
          Add an address to the destination table.
 int addDestination(String distributionList)
          Add a distribution list to the destination table.
 boolean equals(Object obj)
           
 int getDataCoding()
           
 SMPPDate getDeliveryTime()
           
 DestinationTable getDestinationTable()
          Get a handle to the destination table.
 int getErrorCode()
           
 SMPPDate getExpiryTime()
           
 SMPPDate getFinalDate()
           
protected  int getMandatorySize()
          Get the encoded size of the mandatory parameters of this packet.
 byte[] getMessage()
           
 String getMessageId()
           
 MessageState getMessageStatus()
           
 int getNumDests()
          Get the current number of destination addresses.
 int getPriority()
           
 int getProtocolID()
           
 int getRegistered()
           
 String getServiceType()
           
 Address getSource()
           
 int hashCode()
           
protected  void readMandatory(PacketDecoder decoder)
          Read the mandatory parameters from a packet decoder.
 void setDataCoding(int dataCoding)
           
 void setDeliveryTime(SMPPDate deliveryTime)
           
 void setErrorCode(int errorCode)
           
 void setExpiryTime(SMPPDate expiryTime)
           
 void setFinalDate(SMPPDate finalDate)
           
 void setMessage(byte[] message)
           
 void setMessageId(String messageId)
           
 void setMessageStatus(MessageState messageStatus)
           
 void setPriority(int priority)
           
 void setProtocolID(int protocolID)
           
 void setRegistered(int registered)
           
 void setServiceType(String serviceType)
           
 void setSource(Address source)
           
protected  void toString(StringBuilder buffer)
          Get the mandatory parameters in string form (for display purposes only).
protected  void validateMandatory(SMPPVersion smppVersion)
          Validate the mandatory parameters for this packet.
protected  void writeMandatory(PacketEncoder encoder)
          Write the mandatory parameters to a packet encoder.
 
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, validate, validateTLVTable, writeTo, writeTo
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

QueryMsgDetailsResp

public QueryMsgDetailsResp()
Construct a new QueryMsgDetailsResp.


QueryMsgDetailsResp

public QueryMsgDetailsResp(SMPPPacket request)
Create a new QueryMsgDetailsResp packet in response to a BindReceiver. This constructor will set the sequence number to it's expected value.

Parameters:
request - The Request packet the response is to
Method Detail

getDataCoding

public int getDataCoding()

setDataCoding

public void setDataCoding(int dataCoding)

getDeliveryTime

public SMPPDate getDeliveryTime()

setDeliveryTime

public void setDeliveryTime(SMPPDate deliveryTime)

getErrorCode

public int getErrorCode()

setErrorCode

public void setErrorCode(int errorCode)

getExpiryTime

public SMPPDate getExpiryTime()

setExpiryTime

public void setExpiryTime(SMPPDate expiryTime)

getFinalDate

public SMPPDate getFinalDate()

setFinalDate

public void setFinalDate(SMPPDate finalDate)

getMessage

public byte[] getMessage()

setMessage

public void setMessage(byte[] message)

getMessageId

public String getMessageId()

setMessageId

public void setMessageId(String messageId)

getMessageStatus

public MessageState getMessageStatus()

setMessageStatus

public void setMessageStatus(MessageState messageStatus)

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)

getServiceType

public String getServiceType()

setServiceType

public void setServiceType(String serviceType)

getSource

public Address getSource()

setSource

public void setSource(Address source)

addDestination

public int addDestination(Address address)
Add an address to the destination table.

Parameters:
address - The SME destination address
Returns:
The current number of destination addresses (including the new one).
See Also:
Address

addDestination

public int addDestination(String distributionList)
Add a distribution list to the destination table.

Parameters:
distributionList - the distribution list name.
Returns:
The current number of destination addresses (including the new

getNumDests

public int getNumDests()
Get the current number of destination addresses.


getDestinationTable

public DestinationTable getDestinationTable()
Get a handle to the destination table.


equals

public boolean equals(Object obj)
Overrides:
equals in class SMPPPacket

hashCode

public int hashCode()
Overrides:
hashCode in class SMPPPacket

toString

protected void toString(StringBuilder buffer)
Description copied from class: SMPPPacket
Get the mandatory parameters in string form (for display purposes only).

Overrides:
toString in class SMPPPacket

validateMandatory

protected void validateMandatory(SMPPVersion smppVersion)
Description copied from class: SMPPPacket
Validate the mandatory parameters for this packet. If any mandatory parameter fails validation, a org.mobicents.smpp.version.VersionException should be thrown.

Overrides:
validateMandatory in class SMPPPacket
Parameters:
smppVersion - The version to validate against.

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.

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.

getMandatorySize

protected int getMandatorySize()
Description copied from class: SMPPPacket
Get the encoded size of the mandatory parameters of this packet.

Overrides:
getMandatorySize in class SMPPPacket
Returns:
The number of bytes the mandatory parameters will encode to.


Copyright © 2011 Mobicents. All Rights Reserved.