Package org.apache.camel.component.smpp
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 Summary
Constructors Constructor Description MessageReceiverListenerImpl(SmppConsumer consumer, SmppEndpoint endpoint, org.apache.camel.Processor processor, org.apache.camel.spi.ExceptionHandler exceptionHandler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.camel.ExchangecreateOnAcceptAlertNotificationExchange(org.jsmpp.bean.AlertNotification alertNotification)Create a new exchange for communicating with this endpoint from a SMSC with the specifiedExchangePatternsuch as whether its going to be anExchangePattern.InOnlyorExchangePattern.InOutexchangevoidonAcceptAlertNotification(org.jsmpp.bean.AlertNotification alertNotification)org.jsmpp.session.DataSmResultonAcceptDataSm(org.jsmpp.bean.DataSm dataSm, org.jsmpp.session.Session session)voidonAcceptDeliverSm(org.jsmpp.bean.DeliverSm deliverSm)voidsetMessageIDGenerator(org.jsmpp.util.MessageIDGenerator messageIDGenerator)
-
-
-
Constructor Detail
-
MessageReceiverListenerImpl
public MessageReceiverListenerImpl(SmppConsumer consumer, SmppEndpoint endpoint, org.apache.camel.Processor processor, org.apache.camel.spi.ExceptionHandler exceptionHandler)
-
-
Method Detail
-
onAcceptAlertNotification
public void onAcceptAlertNotification(org.jsmpp.bean.AlertNotification alertNotification)
- Specified by:
onAcceptAlertNotificationin interfaceorg.jsmpp.session.MessageReceiverListener
-
onAcceptDeliverSm
public void onAcceptDeliverSm(org.jsmpp.bean.DeliverSm deliverSm) throws org.jsmpp.extra.ProcessRequestException- Specified by:
onAcceptDeliverSmin interfaceorg.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:
onAcceptDataSmin interfaceorg.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 specifiedExchangePatternsuch as whether its going to be anExchangePattern.InOnlyorExchangePattern.InOutexchange- Parameters:
alertNotification- the received message from the SMSC- Returns:
- a new exchange
-
-