IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

com.ibm.btt.channel.sms.outbound
Class BTTOutboundMessageHandler

java.lang.Object
  extended by com.ibm.btt.channel.sms.outbound.BTTOutboundMessageHandler
All Implemented Interfaces:
OutboundMessageHandler

public class BTTOutboundMessageHandler
extends java.lang.Object
implements OutboundMessageHandler


Field Summary
(package private)  OutboundHandlerConfiguration config
           
 
Constructor Summary
BTTOutboundMessageHandler()
           
 
Method Summary
 OutboundHandlerConfiguration getConfig()
          Get the configuration for BTT outbound handler
protected  java.lang.String getContent(java.lang.Object message, java.lang.String toNumber)
          Get the HTTP content to be sent.
protected  java.lang.String handleResponseData(java.io.InputStream responseStream, java.lang.String toNumber)
          Default implementation method to handle the HTTP response of outbound.
 java.lang.String sendMessage(java.lang.Object message, java.lang.String toNumber)
          send the SMS message by HTTP
 void setConfig(OutboundHandlerConfiguration config)
          Set the configuration for BTT outbound handler
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

config

OutboundHandlerConfiguration config
Constructor Detail

BTTOutboundMessageHandler

public BTTOutboundMessageHandler()
Method Detail

sendMessage

public java.lang.String sendMessage(java.lang.Object message,
                                    java.lang.String toNumber)
                             throws SMSHandlerException
send the SMS message by HTTP

Specified by:
sendMessage in interface OutboundMessageHandler
Parameters:
message - SMS to be sent
toNumber - the phone number to which the SMS is sent
Returns:
SMS message ID get from gateway
Throws:
SMSHandlerException
See Also:
OutboundMessageHandler.sendMessage(Object, String)

getContent

protected java.lang.String getContent(java.lang.Object message,
                                      java.lang.String toNumber)
Get the HTTP content to be sent. Application can override this method to set the XML content for HTTP xml/text type. Set the XML data for outbound message in

Parameters:
message -
toNumber -
Returns:

handleResponseData

protected java.lang.String handleResponseData(java.io.InputStream responseStream,
                                              java.lang.String toNumber)
                                       throws SMSHandlerException
Default implementation method to handle the HTTP response of outbound. It parse the response data from gateway. It will use the DLR configuration to handle the Delivery report. Application can override this method to handle the response by itself.

Parameters:
responseStream -
toNumber -
Returns:
Throws:
SMSHandlerException

getConfig

public OutboundHandlerConfiguration getConfig()
Get the configuration for BTT outbound handler

Returns:
OutboundHandlerConfiguration

setConfig

public void setConfig(OutboundHandlerConfiguration config)
Set the configuration for BTT outbound handler

Parameters:
config - OutboundHandlerConfiguration

IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2011