org.jsmpp.session.state
Class SMPPServerSessionUnbound

java.lang.Object
  extended by org.jsmpp.session.state.SMPPServerSessionUnbound
All Implemented Interfaces:
SMPPServerSessionState

public class SMPPServerSessionUnbound
extends java.lang.Object
implements SMPPServerSessionState

Author:
uudashr

Field Summary
 
Fields inherited from interface org.jsmpp.session.state.SMPPServerSessionState
BOUND_RX, BOUND_TRX, BOUND_TX, CLOSED, OPEN, UNBOUND
 
Constructor Summary
SMPPServerSessionUnbound()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SMPPServerSessionUnbound

public SMPPServerSessionUnbound()
Method Detail

getSessionState

public SessionState getSessionState()
Get the associated session state value.

Returns:
the SessionState associated by the interface implementation.

processBind

public void processBind(Command pduHeader,
                        byte[] pdu,
                        ServerResponseHandler responseHandler)
                 throws java.io.IOException
Description copied from interface: SMPPServerSessionState
Process the bind request command.

Specified by:
processBind in interface SMPPServerSessionState
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.

processDeliverSmResp

public void processDeliverSmResp(Command pduHeader,
                                 byte[] pdu,
                                 ServerResponseHandler responseHandler)
                          throws java.io.IOException
Specified by:
processDeliverSmResp in interface SMPPServerSessionState
Throws:
java.io.IOException

processQuerySm

public void processQuerySm(Command pduHeader,
                           byte[] pdu,
                           ServerResponseHandler responseHandler)
                    throws java.io.IOException
Specified by:
processQuerySm in interface SMPPServerSessionState
Throws:
java.io.IOException

processSubmitSm

public void processSubmitSm(Command pduHeader,
                            byte[] pdu,
                            ServerResponseHandler responseHandler)
                     throws java.io.IOException
Description copied from interface: SMPPServerSessionState
Process the submit short message request command.

Specified by:
processSubmitSm in interface SMPPServerSessionState
Parameters:
pduHeader - is the PDU header.
pdu - is the complete PDU.
responseHandler - is the response handler.
Throws:
java.io.IOException

processSubmitMulti

public void processSubmitMulti(Command pduHeader,
                               byte[] pdu,
                               ServerResponseHandler responseHandler)
                        throws java.io.IOException
Specified by:
processSubmitMulti in interface SMPPServerSessionState
Throws:
java.io.IOException

processEnquireLink

public 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

public 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.

processGenericNack

public 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.

processUnbind

public 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

public 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

public 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

public 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

public 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.

processCancelSm

public void processCancelSm(Command pduHeader,
                            byte[] pdu,
                            ServerResponseHandler responseHandler)
                     throws java.io.IOException
Description copied from interface: SMPPServerSessionState
Process the cancel short message request command.

Specified by:
processCancelSm in interface SMPPServerSessionState
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

public void processReplaceSm(Command pduHeader,
                             byte[] pdu,
                             ServerResponseHandler responseHandler)
                      throws java.io.IOException
Specified by:
processReplaceSm in interface SMPPServerSessionState
Throws:
java.io.IOException