org.apache.axis2.transport.sms
Class DefaultSMSMessageBuilderImpl

java.lang.Object
  extended by org.apache.axis2.transport.sms.DefaultSMSMessageBuilderImpl
All Implemented Interfaces:
SMSMessageBuilder

public class DefaultSMSMessageBuilderImpl
extends java.lang.Object
implements SMSMessageBuilder

Builds the MessageContext for the from the incoming SMS accepts the RPC style message format serviceName : operationName : param_1 = value_1 : param_2 = value_2 : param_3 = value _3 : ... : param_n = value_n eg: Election : vote : party = XXX : candidate = XXX


Field Summary
static java.lang.String KEY_VALUE_SEPERATOR
           
protected  org.apache.commons.logging.Log log
          the reference to the actual commons logger to be used for log messages
 
Constructor Summary
DefaultSMSMessageBuilderImpl()
           
 
Method Summary
 org.apache.axis2.context.MessageContext buildMessaage(SMSMessage msg, org.apache.axis2.context.ConfigurationContext configurationContext)
          Build the Axis2 Message Context form the SMSMessage.This is respnsible for handling
the content comming with the SMSMessage, handling the sender receiver details and handling the
and handling the SMSMessage properties to buld the Axis2 Message Context appropriately
protected  void handleSMSProperties(SMSMessage msg, org.apache.axis2.context.MessageContext messageContext)
          this will add the SMSMessage properties to the Axis2MessageContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

KEY_VALUE_SEPERATOR

public static final java.lang.String KEY_VALUE_SEPERATOR
See Also:
Constant Field Values

log

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

Constructor Detail

DefaultSMSMessageBuilderImpl

public DefaultSMSMessageBuilderImpl()
Method Detail

buildMessaage

public org.apache.axis2.context.MessageContext buildMessaage(SMSMessage msg,
                                                             org.apache.axis2.context.ConfigurationContext configurationContext)
                                                      throws InvalidMessageFormatException
Description copied from interface: SMSMessageBuilder
Build the Axis2 Message Context form the SMSMessage.This is respnsible for handling
the content comming with the SMSMessage, handling the sender receiver details and handling the
and handling the SMSMessage properties to buld the Axis2 Message Context appropriately

Specified by:
buildMessaage in interface SMSMessageBuilder
Returns:
Throws:
InvalidMessageFormatException

handleSMSProperties

protected void handleSMSProperties(SMSMessage msg,
                                   org.apache.axis2.context.MessageContext messageContext)
this will add the SMSMessage properties to the Axis2MessageContext

Parameters:
msg -
messageContext -


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