org.jsmpp.examples
Class MessageReceiverListenerImpl

java.lang.Object
  extended by org.jsmpp.examples.MessageReceiverListenerImpl
All Implemented Interfaces:
GenericMessageReceiverListener, MessageReceiverListener

public class MessageReceiverListenerImpl
extends java.lang.Object
implements MessageReceiverListener

Author:
uudashr

Constructor Summary
MessageReceiverListenerImpl()
           
 
Method Summary
 void onAcceptAlertNotification(AlertNotification alertNotification)
          This event raised when alert notification received.
 DataSmResult onAcceptDataSm(DataSm dataSm, Session source)
          Event that called when a data short message accepted.
 void onAcceptDeliverSm(DeliverSm deliverSm)
          This event raised when a short message received.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageReceiverListenerImpl

public MessageReceiverListenerImpl()
Method Detail

onAcceptDeliverSm

public void onAcceptDeliverSm(DeliverSm deliverSm)
                       throws ProcessRequestException
Description copied from interface: MessageReceiverListener
This event raised when a short message received.

Specified by:
onAcceptDeliverSm in interface MessageReceiverListener
Parameters:
deliverSm - is the short message.
Throws:
ProcessRequestException - throw if there should be return Non-OK command_status for the response.

onAcceptAlertNotification

public void onAcceptAlertNotification(AlertNotification alertNotification)
Description copied from interface: MessageReceiverListener
This event raised when alert notification received.

Specified by:
onAcceptAlertNotification in interface MessageReceiverListener
Parameters:
alertNotification - is the alert notification.

onAcceptDataSm

public DataSmResult onAcceptDataSm(DataSm dataSm,
                                   Session source)
                            throws ProcessRequestException
Description copied from interface: GenericMessageReceiverListener
Event that called when a data short message accepted.

Specified by:
onAcceptDataSm in interface GenericMessageReceiverListener
Parameters:
dataSm - is the data_sm command.
source - is the session receive the data_sm command.
Returns:
the data_sm result.
Throws:
ProcessRequestException - throw if there should be return non-ok command_status for the response.