@UriEndpoint(firstVersion="2.2.0",
scheme="smpp,smpps",
title="SMPP",
syntax="smpp:host:port",
category=MOBILE,
lenientProperties=true)
public class SmppEndpoint
extends org.apache.camel.support.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 |
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() |
void |
setBinding(SmppBinding binding) |
configureConsumer, configureExchange, configurePollingConsumer, configureProperties, createAsyncProducer, createExchange, createExchange, createPollingConsumer, doInit, doStart, doStop, equals, getCamelContext, getComponent, getEndpointKey, getEndpointUri, getExceptionHandler, getExchangePattern, getId, getPollingConsumerBlockTimeout, getPollingConsumerQueueSize, hashCode, isAutowiredEnabled, isBridgeErrorHandler, isLazyStartProducer, isPollingConsumerBlockWhenFull, isPollingConsumerCopy, isSingleton, setAutowiredEnabled, setBridgeErrorHandler, setCamelContext, setComponent, setEndpointUri, setEndpointUriIfNotSpecified, setExceptionHandler, setExchangePattern, setLazyStartProducer, setPollingConsumerBlockTimeout, setPollingConsumerBlockWhenFull, setPollingConsumerCopy, setPollingConsumerQueueSize, setProperties, toStringbuild, doBuild, doFail, doLifecycleChange, doResume, doShutdown, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic SmppEndpoint(String endpointUri, org.apache.camel.Component component, SmppConfiguration configuration)
protected String createEndpointUri()
createEndpointUri in class org.apache.camel.support.DefaultEndpointpublic boolean isLenientProperties()
isLenientProperties in interface org.apache.camel.EndpointisLenientProperties in class org.apache.camel.support.DefaultEndpointpublic org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor)
throws Exception
Exceptionpublic org.apache.camel.Exchange createOnAcceptDeliverSmExchange(org.jsmpp.bean.DeliverSm deliverSm)
throws Exception
deliverSm - the received message from the SMSCExceptionpublic 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 SMSCExceptionpublic 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