Package org.apache.camel.component.smpp
Class SmppBinding
java.lang.Object
org.apache.camel.component.smpp.SmppBinding
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateSmppCommand
(org.jsmpp.session.SMPPSession session, org.apache.camel.Exchange exchange) Create the SmppCommand object from the inbound exchangecreateSmppMessage
(org.apache.camel.CamelContext camelContext, org.jsmpp.bean.AlertNotification alertNotification) Create a new SmppMessage from the inbound alert notificationcreateSmppMessage
(org.apache.camel.CamelContext camelContext, org.jsmpp.bean.DataSm dataSm, String smppMessageId) createSmppMessage
(org.apache.camel.CamelContext camelContext, org.jsmpp.bean.DeliverSm deliverSm) Create a new SmppMessage from the inbound deliver sm or deliver receiptReturns the smpp configurationvoid
setConfiguration
(SmppConfiguration configuration) Set the smpp configuration.
-
Constructor Details
-
SmppBinding
public SmppBinding() -
SmppBinding
-
-
Method Details
-
createSmppCommand
public SmppCommand createSmppCommand(org.jsmpp.session.SMPPSession session, org.apache.camel.Exchange exchange) Create the SmppCommand object from the inbound exchange- Throws:
UnsupportedEncodingException
- if the encoding is not supported
-
createSmppMessage
public SmppMessage createSmppMessage(org.apache.camel.CamelContext camelContext, org.jsmpp.bean.AlertNotification alertNotification) Create a new SmppMessage from the inbound alert notification -
createSmppMessage
public SmppMessage createSmppMessage(org.apache.camel.CamelContext camelContext, org.jsmpp.bean.DeliverSm deliverSm) throws Exception Create a new SmppMessage from the inbound deliver sm or deliver receipt- Throws:
Exception
-
createSmppMessage
public SmppMessage createSmppMessage(org.apache.camel.CamelContext camelContext, org.jsmpp.bean.DataSm dataSm, String smppMessageId) -
getConfiguration
Returns the smpp configuration- Returns:
- the configuration
-
setConfiguration
Set the smpp configuration.- Parameters:
configuration
- smppConfiguration
-