org.apache.axis2.transport.sms
Class SMSManager

java.lang.Object
  extended by org.apache.axis2.transport.sms.SMSManager

public class SMSManager
extends java.lang.Object

SMS manager will manage all SMS implementation managers and it will dispatch the Message to the Axis2 Engine


Field Summary
protected  org.apache.commons.logging.Log log
          the reference to the actual commons logger to be used for log messages
 
Constructor Summary
SMSManager()
           
 
Method Summary
 void dispatchToAxis2(SMSMessage sms)
          Dispatch the SMS message to Axis2 Engine
 SMSImplManager getCurrentImplimentation()
           
 java.lang.String getPhoneNumber()
           
 void init(org.apache.axis2.description.TransportInDescription transportInDescription, org.apache.axis2.context.ConfigurationContext configurationContext)
          initialize the SMS manager with TransportinDiscription if Manager is already inited it will only set the TransportInDiscription in the current Implimentation manager
 void init(org.apache.axis2.description.TransportOutDescription transportOutDescription, org.apache.axis2.context.ConfigurationContext configurationContext)
          Initialize the SMS Maneger with TransportOutDiscription if the Maneger is already inited it will set the Transport Outdetails in the Current Implimentation Manage
 boolean isInited()
           
 boolean isInvertSourceAndDestination()
           
 void sendSMS(org.apache.axis2.context.MessageContext messageContext)
          send a SMS form the message comming form the Axis2 Engine
 void sentInfo(SMSMessage sms)
          send the information SMS messages other than messages comming form the Axis2 Engine
 void setCurrentImplimentation(SMSImplManager currentImplimentation)
           
 void setInvertSourceAndDestination(boolean invertSourceAndDestination)
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected org.apache.commons.logging.Log log
the reference to the actual commons logger to be used for log messages

Constructor Detail

SMSManager

public SMSManager()
Method Detail

init

public void init(org.apache.axis2.description.TransportInDescription transportInDescription,
                 org.apache.axis2.context.ConfigurationContext configurationContext)
          throws org.apache.axis2.AxisFault
initialize the SMS manager with TransportinDiscription if Manager is already inited it will only set the TransportInDiscription in the current Implimentation manager

Parameters:
transportInDescription -
configurationContext -
Throws:
org.apache.axis2.AxisFault

init

public void init(org.apache.axis2.description.TransportOutDescription transportOutDescription,
                 org.apache.axis2.context.ConfigurationContext configurationContext)
          throws org.apache.axis2.AxisFault
Initialize the SMS Maneger with TransportOutDiscription if the Maneger is already inited it will set the Transport Outdetails in the Current Implimentation Manage

Parameters:
transportOutDescription -
configurationContext -
Throws:
org.apache.axis2.AxisFault

dispatchToAxis2

public void dispatchToAxis2(SMSMessage sms)
Dispatch the SMS message to Axis2 Engine

Parameters:
sms -

sendSMS

public void sendSMS(org.apache.axis2.context.MessageContext messageContext)
send a SMS form the message comming form the Axis2 Engine

Parameters:
messageContext - that is comming form the Axis2

sentInfo

public void sentInfo(SMSMessage sms)
send the information SMS messages other than messages comming form the Axis2 Engine

Parameters:
sms -

getCurrentImplimentation

public SMSImplManager getCurrentImplimentation()

setCurrentImplimentation

public void setCurrentImplimentation(SMSImplManager currentImplimentation)

start

public void start()

stop

public void stop()

isInited

public boolean isInited()

getPhoneNumber

public java.lang.String getPhoneNumber()

isInvertSourceAndDestination

public boolean isInvertSourceAndDestination()

setInvertSourceAndDestination

public void setInvertSourceAndDestination(boolean invertSourceAndDestination)


Copyright © 2004-2009 The Apache Software Foundation. All Rights Reserved.