org.jsmpp.session.state
Interface SMPPSessionState


public interface SMPPSessionState

This class is provide interface to response to every incoming SMPP Commands. How the the response behavior is depends to it's states, or the implementation of this class.

Since:
2.0
Version:
1.0
Author:
uudashr

Field Summary
static SMPPSessionState BOUND_RX
           
static SMPPSessionState BOUND_TRX
           
static SMPPSessionState BOUND_TX
           
static SMPPSessionState CLOSED
           
static SMPPSessionState OPEN
           
static SMPPSessionState UNBOUND
           
 
Method Summary
 SessionState getSessionState()
          Get the associated session state value.
 void processAlertNotification(Command pduHeader, byte[] pdu, ResponseHandler responseHandler)
           
 void processBindResp(Command pduHeader, byte[] pdu, ResponseHandler responseHandler)
          Process the bind response command.
 void processCancelSmResp(Command pduHeader, byte[] pdu, ResponseHandler responseHandler)
           
 void processDataSm(Command pduHeader, byte[] pdu, BaseResponseHandler responseHandler)
          Process the data short message request command.
 void processDataSmResp(Command pduHeader, byte[] pdu, BaseResponseHandler responseHandler)
          Process the data short message response command.
 void processDeliverSm(Command pduHeader, byte[] pdu, ResponseHandler responseHandler)
          Process the deliver short message request command.
 void processEnquireLink(Command pduHeader, byte[] pdu, BaseResponseHandler responseHandler)
          Process the enquire_link command.
 void processEnquireLinkResp(Command pduHeader, byte[] pdu, BaseResponseHandler responseHandler)
          Process the enquire_link_resp command.
 void processGenericNack(Command pduHeader, byte[] pdu, BaseResponseHandler responseHandler)
          Process the generick_nack command.
 void processQuerySmResp(Command pduHeader, byte[] pdu, ResponseHandler responseHandler)
          Process the query short message response command.
 void processReplaceSmResp(Command pduHeader, byte[] pdu, ResponseHandler responseHandler)
           
 void processSubmitMultiResp(Command pduHeader, byte[] pdu, ResponseHandler responseHandler)
          Process a submit multiple message response.
 void processSubmitSmResp(Command pduHeader, byte[] pdu, ResponseHandler responseHandler)
          Process the submit short message response command.
 void processUnbind(Command pduHeader, byte[] pdu, BaseResponseHandler responseHandler)
          Process the unbind command.
 void processUnbindResp(Command pduHeader, byte[] pdu, BaseResponseHandler responseHandler)
          Process the unbind_resp command.
 void processUnknownCid(Command pduHeader, byte[] pdu, BaseResponseHandler responseHandler)
          Process the unknown command id.
 

Field Detail

OPEN

static final SMPPSessionState OPEN

BOUND_RX

static final SMPPSessionState BOUND_RX

BOUND_TX

static final SMPPSessionState BOUND_TX

BOUND_TRX

static final SMPPSessionState BOUND_TRX

UNBOUND

static final SMPPSessionState UNBOUND

CLOSED

static final SMPPSessionState CLOSED
Method Detail

processBindResp

void processBindResp(Command pduHeader,
                     byte[] pdu,
                     ResponseHandler responseHandler)
                     throws java.io.IOException
Process the bind response command.

Parameters:
pduHeader - is the PDU header.
pdu - is the complete PDU.
responseHandler - is the session handler.
Throws:
java.io.IOException - throw if there is an IO error occur.

processSubmitSmResp

void processSubmitSmResp(Command pduHeader,
                         byte[] pdu,
                         ResponseHandler responseHandler)
                         throws java.io.IOException
Process the submit short message response command.

Parameters:
pduHeader - is the PDU header.
pdu - is the complete PDU.
responseHandler - is the response handler.
Throws:
java.io.IOException - if there is an I/O error found.

processSubmitMultiResp

void processSubmitMultiResp(Command pduHeader,
                            byte[] pdu,
                            ResponseHandler responseHandler)
                            throws java.io.IOException
Process a submit multiple message response.

Parameters:
pduHeader - is the PDU header.
pdu - is the complete PDU.
responseHandler - is the response handler.
Throws:
java.io.IOException - if there is an I/O error found.

processQuerySmResp

void processQuerySmResp(Command pduHeader,
                        byte[] pdu,
                        ResponseHandler responseHandler)
                        throws java.io.IOException
Process the query short message response command.

Parameters:
pduHeader - is the PDU header.
pdu - is the complete PDU.
responseHandler - is the session handler.
Throws:
java.io.IOException - throw if there is an IO error occur.

processDeliverSm

void processDeliverSm(Command pduHeader,
                      byte[] pdu,
                      ResponseHandler responseHandler)
                      throws java.io.IOException
Process the deliver short message request command.

Parameters:
pduHeader - is the PDU header.
pdu - is the complete PDU.
responseHandler - is the session handler.
Throws:
java.io.IOException - throw if there is an IO error occur.

processCancelSmResp

void processCancelSmResp(Command pduHeader,
                         byte[] pdu,
                         ResponseHandler responseHandler)
                         throws java.io.IOException
Throws:
java.io.IOException

processReplaceSmResp

void processReplaceSmResp(Command pduHeader,
                          byte[] pdu,
                          ResponseHandler responseHandler)
                          throws java.io.IOException
Throws:
java.io.IOException

processAlertNotification

void processAlertNotification(Command pduHeader,
                              byte[] pdu,
                              ResponseHandler responseHandler)

getSessionState

SessionState getSessionState()
Get the associated session state value.

Returns:
the SessionState associated by the interface implementation.

processGenericNack

void processGenericNack(Command pduHeader,
                        byte[] pdu,
                        BaseResponseHandler responseHandler)
                        throws java.io.IOException
Process the generick_nack command.

Parameters:
pduHeader - is the PDU header.
pdu - is the complete PDU.
responseHandler - is the session handler.
Throws:
java.io.IOException - throw if there is an IO error occur.

processEnquireLink

void processEnquireLink(Command pduHeader,
                        byte[] pdu,
                        BaseResponseHandler responseHandler)
                        throws java.io.IOException
Process the enquire_link command.

Parameters:
pduHeader - is the PDU header.
pdu - is the complete PDU.
responseHandler - is the session handler.
Throws:
java.io.IOException - throw if there is an IO error occur.

processEnquireLinkResp

void processEnquireLinkResp(Command pduHeader,
                            byte[] pdu,
                            BaseResponseHandler responseHandler)
                            throws java.io.IOException
Process the enquire_link_resp command.

Parameters:
pduHeader - is the PDU header.
pdu - is the complete PDU.
responseHandler - is the session handler.
Throws:
java.io.IOException - throw if there is an IO error occur.

processUnbind

void processUnbind(Command pduHeader,
                   byte[] pdu,
                   BaseResponseHandler responseHandler)
                   throws java.io.IOException
Process the unbind command.

Parameters:
pduHeader - is the PDU header.
pdu - is the complete PDU.
responseHandler - is the session handler.
Throws:
java.io.IOException - throw if there is an IO error occur.

processUnbindResp

void processUnbindResp(Command pduHeader,
                       byte[] pdu,
                       BaseResponseHandler responseHandler)
                       throws java.io.IOException
Process the unbind_resp command.

Parameters:
pduHeader - is the PDU header.
pdu - is the complete PDU.
responseHandler - is the session handler.
Throws:
java.io.IOException - throw if there is an IO error occur.

processUnknownCid

void processUnknownCid(Command pduHeader,
                       byte[] pdu,
                       BaseResponseHandler responseHandler)
                       throws java.io.IOException
Process the unknown command id.

Parameters:
pduHeader - is the PDU header.
pdu - is the complete PDU.
responseHandler - is the session handler.
Throws:
java.io.IOException - throw if there is an IO error occur.

processDataSm

void processDataSm(Command pduHeader,
                   byte[] pdu,
                   BaseResponseHandler responseHandler)
                   throws java.io.IOException
Process the data short message request command.

Parameters:
pduHeader - is the PDU header.
pdu - is the complete PDU.
responseHandler - is the session handler.
Throws:
java.io.IOException - throw if there is an IO error occur.

processDataSmResp

void processDataSmResp(Command pduHeader,
                       byte[] pdu,
                       BaseResponseHandler responseHandler)
                       throws java.io.IOException
Process the data short message response command.

Parameters:
pduHeader - is the PDU header.
pdu - is the complete PDU.
responseHandler - is the session handler.
Throws:
java.io.IOException - throw if there is an IO error occur.