Class MessageReceiverListenerImpl

java.lang.Object
org.apache.camel.component.smpp.MessageReceiverListenerImpl
All Implemented Interfaces:
org.jsmpp.session.GenericMessageReceiverListener, org.jsmpp.session.MessageReceiverListener

public class MessageReceiverListenerImpl extends Object implements org.jsmpp.session.MessageReceiverListener
  • Constructor Details

    • MessageReceiverListenerImpl

      public MessageReceiverListenerImpl(SmppConsumer consumer, SmppEndpoint endpoint, org.apache.camel.Processor processor, org.apache.camel.spi.ExceptionHandler exceptionHandler)
    • MessageReceiverListenerImpl

      public MessageReceiverListenerImpl(SmppEndpoint endpoint, String messageReceiverRouteId) throws Exception
      Throws:
      Exception
  • Method Details

    • onAcceptAlertNotification

      public void onAcceptAlertNotification(org.jsmpp.bean.AlertNotification alertNotification)
      Specified by:
      onAcceptAlertNotification in interface org.jsmpp.session.MessageReceiverListener
    • onAcceptDeliverSm

      public void onAcceptDeliverSm(org.jsmpp.bean.DeliverSm deliverSm) throws org.jsmpp.extra.ProcessRequestException
      Specified by:
      onAcceptDeliverSm in interface org.jsmpp.session.MessageReceiverListener
      Throws:
      org.jsmpp.extra.ProcessRequestException
    • onAcceptDataSm

      public org.jsmpp.session.DataSmResult onAcceptDataSm(org.jsmpp.bean.DataSm dataSm, org.jsmpp.session.Session session) throws org.jsmpp.extra.ProcessRequestException
      Specified by:
      onAcceptDataSm in interface org.jsmpp.session.GenericMessageReceiverListener
      Throws:
      org.jsmpp.extra.ProcessRequestException
    • setMessageIDGenerator

      public void setMessageIDGenerator(org.jsmpp.util.MessageIDGenerator messageIDGenerator)
    • createOnAcceptAlertNotificationExchange

      public org.apache.camel.Exchange createOnAcceptAlertNotificationExchange(org.jsmpp.bean.AlertNotification alertNotification)
      Create a new exchange for communicating with this endpoint from a SMSC with the specified ExchangePattern such as whether its going to be an ExchangePattern.InOnly or ExchangePattern.InOut exchange
      Parameters:
      alertNotification - the received message from the SMSC
      Returns:
      a new exchange