com.ibm.btt.channel.sms
Class SMSResponseHandler
java.lang.Object
com.ibm.btt.channel.sms.SMSResponseHandler
public class SMSResponseHandler
- extends java.lang.Object
Call OutboundHandler to send reply SMS message.
Process the normal reply and exception.
Get the reply message from operation context by fix field REPLYMSG of SMSConstant.
Determine the destination phone number from channel context.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SMSResponseHandler
public SMSResponseHandler()
processReply
public void processReply(ChannelContext channelContext,
java.lang.Object operation,
InboundHandlerConfiguration config)
- Call OutboundHandler to send reply SMS message.
It will determine the destination phone number from channel context.
- Parameters:
channelContext
- the channelContext objectoperation
- the BTT operation
processException
public void processException(ChannelContext channelContext,
java.lang.Exception exception,
InboundHandlerConfiguration config)
- Process the exception of the business logic.
Send "Server internal error" SMS upon general exception
- Parameters:
channelContext
- the channelContext objectexception
- the exception throws by the server side
(c) Copyright IBM Corporation 1998, 2011