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
ConstructorsConstructorDescriptionMessageReceiverListenerImpl(SmppConsumer consumer, SmppEndpoint endpoint, org.apache.camel.Processor processor, org.apache.camel.spi.ExceptionHandler exceptionHandler) MessageReceiverListenerImpl(SmppEndpoint endpoint, String messageReceiverRouteId) -
Method Summary
Modifier and TypeMethodDescriptionorg.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) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jsmpp.session.GenericMessageReceiverListener
onAcceptEnquireLink
-
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:
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
-