ie.omk.smpp.message
Class SMPPResponse

java.lang.Object
  extended by ie.omk.smpp.message.SMPPPacket
      extended by ie.omk.smpp.message.SMPPResponse
Direct Known Subclasses:
BindResp, CancelSMResp, DataSMResp, DeliverSMResp, EnquireLinkResp, GenericNack, ParamRetrieveResp, QueryLastMsgsResp, QueryMsgDetailsResp, QuerySMResp, ReplaceSMResp, SubmitMultiResp, SubmitSMResp, UnbindResp

public abstract class SMPPResponse
extends SMPPPacket

Abstract parent class of all SMPP Response packets.

Version:
1.0
Author:
Oran Kelly

Field Summary
 
Fields inherited from class ie.omk.smpp.message.SMPPPacket
ALERT_NOTIFICATION, BIND_RECEIVER, BIND_RECEIVER_RESP, BIND_TRANSCEIVER, BIND_TRANSCEIVER_RESP, BIND_TRANSMITTER, BIND_TRANSMITTER_RESP, CANCEL_SM, CANCEL_SM_RESP, commandId, commandStatus, DATA_SM, DATA_SM_RESP, dataCoding, defaultMsg, DELIVER_SM, DELIVER_SM_RESP, deliveryTime, destination, ENQUIRE_LINK, ENQUIRE_LINK_RESP, errorCode, esmClass, ESME_ROK, expiryTime, finalDate, GENERIC_NACK, message, messageId, messageStatus, OUTBIND, PARAM_RETRIEVE, PARAM_RETRIEVE_RESP, priority, protocolID, QUERY_LAST_MSGS, QUERY_LAST_MSGS_RESP, QUERY_MSG_DETAILS, QUERY_MSG_DETAILS_RESP, QUERY_SM, QUERY_SM_RESP, registered, REPLACE_SM, REPLACE_SM_RESP, replaceIfPresent, sequenceNum, serviceType, SM_STATE_ACCEPTED, SM_STATE_DELETED, SM_STATE_DELIVERED, SM_STATE_EN_ROUTE, SM_STATE_EXPIRED, SM_STATE_INVALID, SM_STATE_UNDELIVERABLE, SMC_CAS_DL, SMC_DEFMSG, SMC_DLIST, SMC_ESCALATED, SMC_LOOPBACK_RECEIPT, SMC_MCE, SMC_MO, SMC_MOMT, SMC_MT, SMC_MULTI, SMC_RECEIPT, SMC_RECEIPT_SWAP, SMC_STORE, SMC_STORE_FORWARD, SMC_SUBMIT_REPLACE, source, SUBMIT_MULTI, SUBMIT_MULTI_RESP, SUBMIT_SM, SUBMIT_SM_RESP, tlvTable, UNBIND, UNBIND_RESP, version
 
Constructor Summary
protected SMPPResponse(int id)
          Construct a new SMPPResponse with specified command id.
protected SMPPResponse(int id, int seqNum)
          Construct a new SMPPResponse with specified sequence number.
  SMPPResponse(SMPPRequest q)
          Create a new SMPPResponse packet in response to a BindReceiver.
 
Method Summary
 void setCommandStatus(int s)
          Set the status of this command (header field)
 
Methods inherited from class ie.omk.smpp.message.SMPPPacket
encodeBody, getBodyLength, getCommandId, getCommandLen, getCommandStatus, getDataCoding, getDefaultMsg, getDefaultMsgId, getDeliveryTime, getDestination, getErrorCode, getEsmClass, getExpiryTime, getFinalDate, getLength, getMessage, getMessageEncoding, getMessageId, getMessageLen, getMessageStatus, getMessageText, getMessageText, getOptionalParameter, getPriority, getProtocolId, getProtocolID, getRegistered, getReplaceIfPresent, getSequenceNum, getServiceType, getSource, getTLVTable, getVersion, isPriority, isRegistered, isReplaceIfPresent, isRequest, isSet, readBodyFrom, readFrom, setAlphabet, setAlphabet, setDataCoding, setDefaultMsg, setDeliveryTime, setDeliveryTime, setDestination, setErrorCode, setEsmClass, setExpiryTime, setExpiryTime, setFinalDate, setFinalDate, setMessage, setMessage, setMessage, setMessageEncoding, setMessageId, setMessageStatus, setMessageText, setMessageText, setOptionalParameter, setPriority, setProtocolId, setProtocolID, setRegistered, setRegistered, setReplaceIfPresent, setReplaceIfPresent, setSequenceNum, setServiceType, setSource, setTLVTable, setVersion, toString, writeTo, writeTo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SMPPResponse

protected SMPPResponse(int id)
Construct a new SMPPResponse with specified command id.


SMPPResponse

protected SMPPResponse(int id,
                       int seqNum)
Construct a new SMPPResponse with specified sequence number.

Parameters:
seqNum - The sequence number to use

SMPPResponse

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

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

setCommandStatus

public void setCommandStatus(int s)
Set the status of this command (header field)

Parameters:
s - The value for the status


Copyright © 2011 smppapi at Sourceforge. All Rights Reserved.