org.apache.camel.component.smpp
Class AbstractSmppCommand

java.lang.Object
  extended by org.apache.camel.component.smpp.AbstractSmppCommand
All Implemented Interfaces:
SmppCommand
Direct Known Subclasses:
SmppCancelSmCommand, SmppDataSmCommand, SmppQuerySmCommand, SmppSmCommand

public abstract class AbstractSmppCommand
extends Object
implements SmppCommand


Field Summary
protected  SmppConfiguration config
           
protected  org.slf4j.Logger log
           
protected  org.jsmpp.session.SMPPSession session
           
 
Constructor Summary
AbstractSmppCommand(org.jsmpp.session.SMPPSession session, SmppConfiguration config)
           
 
Method Summary
protected  List<org.jsmpp.bean.OptionalParameter> createOptionalParametersByCode(Map<Short,Object> optinalParamaters)
           
protected  List<org.jsmpp.bean.OptionalParameter> createOptionalParametersByName(Map<String,String> optinalParamaters)
          Deprecated. will be removed in Camel 2.13.0/3.0.0 - use createOptionalParametersByCode instead
protected  Class<? extends org.jsmpp.bean.OptionalParameter> determineTypeClass(org.jsmpp.bean.OptionalParameter.Tag tag)
           
protected  org.apache.camel.Message getResponseMessage(org.apache.camel.Exchange exchange)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.camel.component.smpp.SmppCommand
execute
 

Field Detail

log

protected final org.slf4j.Logger log

session

protected org.jsmpp.session.SMPPSession session

config

protected SmppConfiguration config
Constructor Detail

AbstractSmppCommand

public AbstractSmppCommand(org.jsmpp.session.SMPPSession session,
                           SmppConfiguration config)
Method Detail

getResponseMessage

protected org.apache.camel.Message getResponseMessage(org.apache.camel.Exchange exchange)

createOptionalParametersByCode

protected List<org.jsmpp.bean.OptionalParameter> createOptionalParametersByCode(Map<Short,Object> optinalParamaters)

createOptionalParametersByName

protected List<org.jsmpp.bean.OptionalParameter> createOptionalParametersByName(Map<String,String> optinalParamaters)
Deprecated. will be removed in Camel 2.13.0/3.0.0 - use createOptionalParametersByCode instead

Parameters:
optinalParamaters -
Returns:

determineTypeClass

protected Class<? extends org.jsmpp.bean.OptionalParameter> determineTypeClass(org.jsmpp.bean.OptionalParameter.Tag tag)
                                                                        throws SecurityException,
                                                                               NoSuchFieldException,
                                                                               IllegalArgumentException,
                                                                               IllegalAccessException
Throws:
SecurityException
NoSuchFieldException
IllegalArgumentException
IllegalAccessException


Apache Camel