org.apache.camel.component.smpp
Class SmppMessage

java.lang.Object
  extended by org.apache.camel.impl.MessageSupport
      extended by org.apache.camel.impl.DefaultMessage
          extended by org.apache.camel.component.smpp.SmppMessage
All Implemented Interfaces:
org.apache.camel.Message

public class SmppMessage
extends org.apache.camel.impl.DefaultMessage

Represents a Message for working with SMPP


Constructor Summary
SmppMessage(org.jsmpp.bean.AlertNotification command, SmppConfiguration configuration)
           
SmppMessage(org.jsmpp.bean.DataSm dataSm, SmppConfiguration configuration)
           
SmppMessage(org.jsmpp.bean.DeliverSm command, SmppConfiguration configuration)
           
SmppMessage(SmppConfiguration configuration)
           
 
Method Summary
protected  Object createBody()
           
 org.jsmpp.bean.Command getCommand()
          Returns the underlying jSMPP command
 boolean isAlertNotification()
           
 boolean isDataSm()
           
 boolean isDeliverSm()
           
 boolean isDeliveryReceipt()
           
 SmppMessage newInstance()
           
 String toString()
           
 
Methods inherited from class org.apache.camel.impl.DefaultMessage
addAttachment, createAttachments, createExchangeId, createHeaders, getAttachment, getAttachmentNames, getAttachments, getHeader, getHeader, getHeader, getHeader, getHeaders, hasAttachments, hasHeaders, hasPopulatedHeaders, isFault, isTransactedRedelivered, populateInitialAttachments, populateInitialHeaders, removeAttachment, removeHeader, removeHeaders, removeHeaders, setAttachments, setFault, setHeader, setHeaders
 
Methods inherited from class org.apache.camel.impl.MessageSupport
copy, copyFrom, createMessageId, getBody, getBody, getBody, getExchange, getMandatoryBody, getMandatoryBody, getMessageId, setBody, setBody, setExchange, setMessageId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SmppMessage

public SmppMessage(SmppConfiguration configuration)

SmppMessage

public SmppMessage(org.jsmpp.bean.AlertNotification command,
                   SmppConfiguration configuration)

SmppMessage

public SmppMessage(org.jsmpp.bean.DeliverSm command,
                   SmppConfiguration configuration)

SmppMessage

public SmppMessage(org.jsmpp.bean.DataSm dataSm,
                   SmppConfiguration configuration)
Method Detail

newInstance

public SmppMessage newInstance()
Overrides:
newInstance in class org.apache.camel.impl.DefaultMessage

isAlertNotification

public boolean isAlertNotification()

isDataSm

public boolean isDataSm()

isDeliverSm

public boolean isDeliverSm()

isDeliveryReceipt

public boolean isDeliveryReceipt()

createBody

protected Object createBody()
Overrides:
createBody in class org.apache.camel.impl.MessageSupport

toString

public String toString()
Overrides:
toString in class org.apache.camel.impl.DefaultMessage

getCommand

public org.jsmpp.bean.Command getCommand()
Returns the underlying jSMPP command

Returns:
command


Apache Camel