ie.omk.smpp.message
Class SMPPRequest

java.lang.Object
  extended by ie.omk.smpp.message.SMPPPacket
      extended by ie.omk.smpp.message.SMPPRequest
Direct Known Subclasses:
AlertNotification, Bind, CancelSM, DataSM, DeliverSM, EnquireLink, Outbind, ParamRetrieve, QueryLastMsgs, QueryMsgDetails, QuerySM, ReplaceSM, SubmitMulti, SubmitSM, Unbind

public abstract class SMPPRequest
extends SMPPPacket

Abstract parent class of all SMPP request packets.

Version:
1.0
Author:
Oran Kelly

Field Summary
protected  boolean isAckd
          false if this packet has been ack'd, true if it has
 
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 SMPPRequest(int id)
          Construct a new SMPPRequest with specified id.
protected SMPPRequest(int id, int seqNum)
          Construct a new SMPPRequest with specified sequence number.
 
Method Summary
 void ack()
          Set this request packet to acknowledged.
 boolean isAckd()
          Check has this request been acknowledged or not.
 boolean isRequest()
          Is this command a request packet.
 
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, 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
 

Field Detail

isAckd

protected boolean isAckd
false if this packet has been ack'd, true if it has

Constructor Detail

SMPPRequest

protected SMPPRequest(int id)
Construct a new SMPPRequest with specified id.


SMPPRequest

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

Parameters:
seqNum - The sequence number to use
Method Detail

isRequest

public final boolean isRequest()
Description copied from class: SMPPPacket
Is this command a request packet.

Overrides:
isRequest in class SMPPPacket
Returns:
true if this packet is an SMPP request, false if it is a response.

isAckd

public final boolean isAckd()
Check has this request been acknowledged or not.


ack

public final void ack()
Set this request packet to acknowledged.



Copyright © 2011 smppapi at Sourceforge. All Rights Reserved.