org.jsmpp.session.state
Interface SMPPServerSessionState

All Known Implementing Classes:
SMPPServerSessionUnbound

public interface SMPPServerSessionState

Author:
uudashr

Field Summary
static SMPPServerSessionState BOUND_RX
           
static SMPPServerSessionState BOUND_TRX
           
static SMPPServerSessionState BOUND_TX
           
static SMPPServerSessionState CLOSED
           
static SMPPServerSessionState OPEN
           
static SMPPServerSessionState UNBOUND
           
 
Method Summary
 SessionState getSessionState()
          Get the associated session state value.
 void processBind(Command pduHeader, byte[] pdu, ServerResponseHandler responseHandler)
          Process the bind request command.
 void processCancelSm(Command pduHeader, byte[] pdu, ServerResponseHandler responseHandler)
          Process the cancel short message request command.
 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 processDeliverSmResp(Command pduHeader, byte[] pdu, ServerResponseHandler responseHandler)
           
 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 processQuerySm(Command pduHeader, byte[] pdu, ServerResponseHandler responseHandler)
           
 void processReplaceSm(Command pduHeader, byte[] pdu, ServerResponseHandler responseHandler)
           
 void processSubmitMulti(Command pduHeader, byte[] pdu, ServerResponseHandler responseHandler)
           
 void processSubmitSm(Command pduHeader, byte[] pdu, ServerResponseHandler responseHandler)
          Process the submit short message request 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 SMPPServerSessionState OPEN

BOUND_RX

static final SMPPServerSessionState BOUND_RX

BOUND_TX

static final SMPPServerSessionState BOUND_TX

BOUND_TRX

static final SMPPServerSessionState BOUND_TRX

UNBOUND

static final SMPPServerSessionState UNBOUND

CLOSED

static final SMPPServerSessionState CLOSED
Method Detail

processBind

void processBind(Command pduHeader,
                 byte[] pdu,
                 ServerResponseHandler responseHandler)
                 throws java.io.IOException
Process the bind request 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 IO error occur.

processSubmitSm

void processSubmitSm(Command pduHeader,
                     byte[] pdu,
                     ServerResponseHandler responseHandler)
                     throws java.io.IOException
Process the submit short message request command.

Parameters:
pduHeader - is the PDU header.
pdu - is the complete PDU.
responseHandler - is the response handler.
Throws:
java.io.IOException

processSubmitMulti

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

processQuerySm

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

processDeliverSmResp

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

processCancelSm

void processCancelSm(Command pduHeader,
                     byte[] pdu,
                     ServerResponseHandler responseHandler)
                     throws java.io.IOException
Process the cancel 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.

processReplaceSm

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

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.