@UriEndpoint(firstVersion="2.2.0", scheme="smpp,smpps", title="SMPP", syntax="smpp:host:port", consumerClass=SmppConsumer.class, label="mobile", lenientProperties=true) public class SmppEndpoint extends org.apache.camel.impl.DefaultEndpoint
Constructor and Description |
---|
SmppEndpoint(String endpointUri,
org.apache.camel.Component component,
SmppConfiguration configuration) |
Modifier and Type | Method and Description |
---|---|
org.apache.camel.Consumer |
createConsumer(org.apache.camel.Processor processor) |
protected String |
createEndpointUri() |
org.apache.camel.Exchange |
createOnAcceptAlertNotificationExchange(org.jsmpp.bean.AlertNotification alertNotification)
Create a new exchange for communicating with this endpoint from a SMSC
|
org.apache.camel.Exchange |
createOnAcceptAlertNotificationExchange(org.apache.camel.ExchangePattern exchangePattern,
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 |
org.apache.camel.Exchange |
createOnAcceptDataSm(org.jsmpp.bean.DataSm dataSm,
String smppMessageId)
Create a new exchange for communicating with this endpoint from a SMSC
|
org.apache.camel.Exchange |
createOnAcceptDataSm(org.apache.camel.ExchangePattern exchangePattern,
org.jsmpp.bean.DataSm dataSm,
String smppMessageId)
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 |
org.apache.camel.Exchange |
createOnAcceptDeliverSmExchange(org.jsmpp.bean.DeliverSm deliverSm)
Create a new exchange for communicating with this endpoint from a SMSC
|
org.apache.camel.Exchange |
createOnAcceptDeliverSmExchange(org.apache.camel.ExchangePattern exchangePattern,
org.jsmpp.bean.DeliverSm deliverSm)
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 |
org.apache.camel.Producer |
createProducer() |
SmppBinding |
getBinding() |
SmppConfiguration |
getConfiguration()
Returns the smpp configuration
|
String |
getConnectionString()
Returns the connection string for the current connection which has the form:
smpp://
|
boolean |
isLenientProperties() |
boolean |
isSingleton() |
void |
setBinding(SmppBinding binding) |
configureConsumer, configurePollingConsumer, configureProperties, createEndpointConfiguration, createExchange, createExchange, createExchange, createPollingConsumer, doStart, doStop, equals, getCamelContext, getComponent, getConsumerProperties, getEndpointConfiguration, getEndpointKey, getEndpointUri, getExceptionHandler, getExchangePattern, getId, getPollingConsumerBlockTimeout, getPollingConsumerQueueSize, hashCode, isBridgeErrorHandler, isPollingConsumerBlockWhenFull, isSynchronous, setBridgeErrorHandler, setCamelContext, setConsumerProperties, setEndpointConfiguration, setEndpointUri, setEndpointUriIfNotSpecified, setExceptionHandler, setExchangePattern, setPollingConsumerBlockTimeout, setPollingConsumerBlockWhenFull, setPollingConsumerQueueSize, setProperties, setSynchronous, toString
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
public SmppEndpoint(String endpointUri, org.apache.camel.Component component, SmppConfiguration configuration)
public boolean isSingleton()
protected String createEndpointUri()
createEndpointUri
in class org.apache.camel.impl.DefaultEndpoint
public boolean isLenientProperties()
isLenientProperties
in interface org.apache.camel.Endpoint
isLenientProperties
in class org.apache.camel.impl.DefaultEndpoint
public org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor) throws Exception
Exception
public org.apache.camel.Exchange createOnAcceptAlertNotificationExchange(org.jsmpp.bean.AlertNotification alertNotification)
alertNotification
- the received message from the SMSCpublic org.apache.camel.Exchange createOnAcceptAlertNotificationExchange(org.apache.camel.ExchangePattern exchangePattern, org.jsmpp.bean.AlertNotification alertNotification)
ExchangePattern
such as whether its going
to be an ExchangePattern.InOnly
or ExchangePattern.InOut
exchangeexchangePattern
- the message exchange pattern for the exchangealertNotification
- the received message from the SMSCpublic org.apache.camel.Exchange createOnAcceptDeliverSmExchange(org.jsmpp.bean.DeliverSm deliverSm) throws Exception
deliverSm
- the received message from the SMSCException
public org.apache.camel.Exchange createOnAcceptDeliverSmExchange(org.apache.camel.ExchangePattern exchangePattern, org.jsmpp.bean.DeliverSm deliverSm) throws Exception
ExchangePattern
such as whether its going
to be an ExchangePattern.InOnly
or ExchangePattern.InOut
exchangeexchangePattern
- the message exchange pattern for the exchangedeliverSm
- the received message from the SMSCException
public org.apache.camel.Exchange createOnAcceptDataSm(org.jsmpp.bean.DataSm dataSm, String smppMessageId)
dataSm
- the received message from the SMSCsmppMessageId
- the smpp message id which will be used in the responsepublic org.apache.camel.Exchange createOnAcceptDataSm(org.apache.camel.ExchangePattern exchangePattern, org.jsmpp.bean.DataSm dataSm, String smppMessageId)
ExchangePattern
such as whether its going
to be an ExchangePattern.InOnly
or ExchangePattern.InOut
exchangeexchangePattern
- the message exchange pattern for the exchangedataSm
- the received message from the SMSCsmppMessageId
- the smpp message id which will be used in the responsepublic String getConnectionString()
public SmppConfiguration getConfiguration()
public SmppBinding getBinding()
public void setBinding(SmppBinding binding)
Apache Camel