org.apache.camel.component.smpp
Class SmppBinding

java.lang.Object
  extended by org.apache.camel.component.smpp.SmppBinding

public class SmppBinding
extends Object

A Strategy used to convert between a Camel Exchange and SmppMessage to and from a SMPP Command

Version:

Field Summary
static String COMMAND_ID
           
static String COMMAND_STATUS
           
static String DATA_CODING
           
static String DELIVERED
           
static String DEST_ADDR
           
static String DEST_ADDR_NPI
           
static String DEST_ADDR_TON
           
static String DONE_DATE
           
static String ERROR
           
static String ESME_ADDR
           
static String ESME_ADDR_NPI
           
static String ESME_ADDR_TON
           
static String FINAL_STATUS
           
static String ID
           
static String MESSAGE_TYPE
           
static String PRIORITY_FLAG
           
static String PROTOCOL_ID
           
static String REGISTERED_DELIVERY
           
static String REPLACE_IF_PRESENT_FLAG
           
static String SCHEDULE_DELIVERY_TIME
           
static String SEQUENCE_NUMBER
           
static String SERVICE_TYPE
           
static String SOURCE_ADDR
           
static String SOURCE_ADDR_NPI
           
static String SOURCE_ADDR_TON
           
static String SUBMIT_DATE
           
static String SUBMITTED
           
static String VALIDITY_PERIOD
           
 
Constructor Summary
SmppBinding()
           
SmppBinding(SmppConfiguration configuration)
           
 
Method Summary
 SmppMessage createSmppMessage(org.jsmpp.bean.AlertNotification alertNotification)
          Create a new SmppMessage from the inbound alert notification
 SmppMessage createSmppMessage(org.jsmpp.bean.DataSm dataSm, String smppMessageId)
           
 SmppMessage createSmppMessage(org.jsmpp.bean.DeliverSm deliverSm)
          Create a new SmppMessage from the inbound deliver sm or deliver receipt
 org.jsmpp.bean.SubmitSm createSubmitSm(Exchange exchange)
          Create the SubmitSm object from the inbound exchange
 SmppConfiguration getConfiguration()
          Returns the smpp configuration
 void setConfiguration(SmppConfiguration configuration)
          Set the smpp configuration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SEQUENCE_NUMBER

public static final String SEQUENCE_NUMBER
See Also:
Constant Field Values

SUBMITTED

public static final String SUBMITTED
See Also:
Constant Field Values

SUBMIT_DATE

public static final String SUBMIT_DATE
See Also:
Constant Field Values

ERROR

public static final String ERROR
See Also:
Constant Field Values

DONE_DATE

public static final String DONE_DATE
See Also:
Constant Field Values

DELIVERED

public static final String DELIVERED
See Also:
Constant Field Values

COMMAND_ID

public static final String COMMAND_ID
See Also:
Constant Field Values

COMMAND_STATUS

public static final String COMMAND_STATUS
See Also:
Constant Field Values

ID

public static final String ID
See Also:
Constant Field Values

REPLACE_IF_PRESENT_FLAG

public static final String REPLACE_IF_PRESENT_FLAG
See Also:
Constant Field Values

VALIDITY_PERIOD

public static final String VALIDITY_PERIOD
See Also:
Constant Field Values

SCHEDULE_DELIVERY_TIME

public static final String SCHEDULE_DELIVERY_TIME
See Also:
Constant Field Values

PRIORITY_FLAG

public static final String PRIORITY_FLAG
See Also:
Constant Field Values

PROTOCOL_ID

public static final String PROTOCOL_ID
See Also:
Constant Field Values

REGISTERED_DELIVERY

public static final String REGISTERED_DELIVERY
See Also:
Constant Field Values

SERVICE_TYPE

public static final String SERVICE_TYPE
See Also:
Constant Field Values

SOURCE_ADDR_NPI

public static final String SOURCE_ADDR_NPI
See Also:
Constant Field Values

SOURCE_ADDR_TON

public static final String SOURCE_ADDR_TON
See Also:
Constant Field Values

SOURCE_ADDR

public static final String SOURCE_ADDR
See Also:
Constant Field Values

DEST_ADDR_NPI

public static final String DEST_ADDR_NPI
See Also:
Constant Field Values

DEST_ADDR_TON

public static final String DEST_ADDR_TON
See Also:
Constant Field Values

DEST_ADDR

public static final String DEST_ADDR
See Also:
Constant Field Values

ESME_ADDR_NPI

public static final String ESME_ADDR_NPI
See Also:
Constant Field Values

ESME_ADDR_TON

public static final String ESME_ADDR_TON
See Also:
Constant Field Values

ESME_ADDR

public static final String ESME_ADDR
See Also:
Constant Field Values

FINAL_STATUS

public static final String FINAL_STATUS
See Also:
Constant Field Values

DATA_CODING

public static final String DATA_CODING
See Also:
Constant Field Values

MESSAGE_TYPE

public static final String MESSAGE_TYPE
See Also:
Constant Field Values
Constructor Detail

SmppBinding

public SmppBinding()

SmppBinding

public SmppBinding(SmppConfiguration configuration)
Method Detail

createSubmitSm

public org.jsmpp.bean.SubmitSm createSubmitSm(Exchange exchange)
                                       throws UnsupportedEncodingException
Create the SubmitSm object from the inbound exchange

Throws:
UnsupportedEncodingException - if the encoding is not supported

createSmppMessage

public SmppMessage createSmppMessage(org.jsmpp.bean.AlertNotification alertNotification)
Create a new SmppMessage from the inbound alert notification


createSmppMessage

public SmppMessage createSmppMessage(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.jsmpp.bean.DataSm dataSm,
                                     String smppMessageId)

getConfiguration

public SmppConfiguration getConfiguration()
Returns the smpp configuration

Returns:
the configuration

setConfiguration

public void setConfiguration(SmppConfiguration configuration)
Set the smpp configuration.

Parameters:
configuration - smppConfiguration


Apache CAMEL