org.jsmpp.session
Interface MessageReceiverListener

All Superinterfaces:
GenericMessageReceiverListener

public interface MessageReceiverListener
extends GenericMessageReceiverListener

This listener will listen to every incoming short message, recognized by deliver_sm command. The logic on this listener should be accomplish in a short time, because the deliver_sm_resp will be processed after the logic executed. Normal logic will be return the deliver_sm_resp with zero valued command_status, or throw ProcessRequestException that gave non-zero valued command_status (in means negative response) depends on the given error code specified on the ProcessRequestException.

Since:
2.0
Version:
1.0
Author:
uudashr

Method Summary
 void onAcceptAlertNotification(AlertNotification alertNotification)
          This event raised when alert notification received.
 void onAcceptDeliverSm(DeliverSm deliverSm)
          This event raised when a short message received.
 
Methods inherited from interface org.jsmpp.session.GenericMessageReceiverListener
onAcceptDataSm
 

Method Detail

onAcceptDeliverSm

void onAcceptDeliverSm(DeliverSm deliverSm)
                       throws ProcessRequestException
This event raised when a short message received.

Parameters:
deliverSm - is the short message.
Throws:
ProcessRequestException - throw if there should be return Non-OK command_status for the response.

onAcceptAlertNotification

void onAcceptAlertNotification(AlertNotification alertNotification)
This event raised when alert notification received.

Parameters:
alertNotification - is the alert notification.