org.apache.camel.component.smpp
Class SmppEndpoint

java.lang.Object
  extended by org.apache.camel.impl.DefaultEndpoint
      extended by org.apache.camel.component.smpp.SmppEndpoint
All Implemented Interfaces:
CamelContextAware, Endpoint, IsSingleton, Service, HasId

public class SmppEndpoint
extends DefaultEndpoint

A SMPP Endpoint

Version:
$Revision: 954209 $
Author:
muellerc

Constructor Summary
SmppEndpoint(String endpointUri, Component component, SmppConfiguration configuration)
           
 
Method Summary
 Consumer createConsumer(Processor processor)
           
protected  String createEndpointUri()
           
 Exchange createOnAcceptAlertNotificationExchange(org.jsmpp.bean.AlertNotification alertNotification)
          Create a new exchange for communicating with this endpoint from a SMSC
 Exchange createOnAcceptAlertNotificationExchange(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
 Exchange createOnAcceptDataSm(org.jsmpp.bean.DataSm dataSm, String smppMessageId)
          Create a new exchange for communicating with this endpoint from a SMSC
 Exchange createOnAcceptDataSm(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
 Exchange createOnAcceptDeliverSmExchange(org.jsmpp.bean.DeliverSm deliverSm)
          Create a new exchange for communicating with this endpoint from a SMSC
 Exchange createOnAcceptDeliverSmExchange(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
 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)
           
 
Methods inherited from class org.apache.camel.impl.DefaultEndpoint
configureProperties, createExchange, createExchange, createExchange, createPollingConsumer, equals, getCamelContext, getComponent, getEndpointKey, getEndpointUri, getExchangePattern, getExchangeType, getId, hashCode, isSynchronous, sanitizeUri, setCamelContext, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setSynchronous, start, stop, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SmppEndpoint

public SmppEndpoint(String endpointUri,
                    Component component,
                    SmppConfiguration configuration)
Method Detail

isSingleton

public boolean isSingleton()

createEndpointUri

protected String createEndpointUri()
Overrides:
createEndpointUri in class DefaultEndpoint

isLenientProperties

public boolean isLenientProperties()
Specified by:
isLenientProperties in interface Endpoint
Overrides:
isLenientProperties in class DefaultEndpoint

createConsumer

public Consumer createConsumer(Processor processor)
                        throws Exception
Throws:
Exception

createProducer

public Producer createProducer()
                        throws Exception
Throws:
Exception

createOnAcceptAlertNotificationExchange

public Exchange createOnAcceptAlertNotificationExchange(org.jsmpp.bean.AlertNotification alertNotification)
Create a new exchange for communicating with this endpoint from a SMSC

Parameters:
alertNotification - the received message from the SMSC
Returns:
a new exchange

createOnAcceptAlertNotificationExchange

public Exchange createOnAcceptAlertNotificationExchange(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

Parameters:
exchangePattern - the message exchange pattern for the exchange
alertNotification - the received message from the SMSC
Returns:
a new exchange

createOnAcceptDeliverSmExchange

public Exchange createOnAcceptDeliverSmExchange(org.jsmpp.bean.DeliverSm deliverSm)
                                         throws Exception
Create a new exchange for communicating with this endpoint from a SMSC

Parameters:
deliverSm - the received message from the SMSC
Returns:
a new exchange
Throws:
Exception

createOnAcceptDeliverSmExchange

public Exchange createOnAcceptDeliverSmExchange(ExchangePattern exchangePattern,
                                                org.jsmpp.bean.DeliverSm deliverSm)
                                         throws Exception
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

Parameters:
exchangePattern - the message exchange pattern for the exchange
deliverSm - the received message from the SMSC
Returns:
a new exchange
Throws:
Exception

createOnAcceptDataSm

public Exchange createOnAcceptDataSm(org.jsmpp.bean.DataSm dataSm,
                                     String smppMessageId)
Create a new exchange for communicating with this endpoint from a SMSC

Parameters:
dataSm - the received message from the SMSC
smppMessageId - the smpp message id which will be used in the response
Returns:
a new exchange

createOnAcceptDataSm

public Exchange createOnAcceptDataSm(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

Parameters:
exchangePattern - the message exchange pattern for the exchange
dataSm - the received message from the SMSC
smppMessageId - the smpp message id which will be used in the response
Returns:
a new exchange

getConnectionString

public String getConnectionString()
Returns the connection string for the current connection which has the form: smpp://@:

Returns:
the connection string

getConfiguration

public SmppConfiguration getConfiguration()
Returns the smpp configuration

Returns:
the configuration

getBinding

public SmppBinding getBinding()

setBinding

public void setBinding(SmppBinding binding)


Apache CAMEL