IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

com.ibm.btt.mobile
Class MobileResponse

java.lang.Object
  extended by com.ibm.btt.http.HttpChannelResponse
      extended by com.ibm.btt.mobile.MobileResponse
All Implemented Interfaces:
ChannelResponse

public class MobileResponse
extends HttpChannelResponse

This class is used to wrap the HttpServletResponse to MobileResponse, so the channel driver can use this to handle the mobile response.


Field Summary
 
Fields inherited from class com.ibm.btt.http.HttpChannelResponse
response
 
Constructor Summary
MobileResponse(javax.servlet.http.HttpServletResponse response)
          Construct the mobile response object
 
Method Summary
 void handleServerException(ChannelContext channelContext, java.lang.Exception exception)
          Process the exception of the mobile server side.
 
Methods inherited from class com.ibm.btt.http.HttpChannelResponse
addCookie, getCharacterEncoding, getOutputStream, getResponse, sendResult, setCharacterEncoding, setContentLength, setContentType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MobileResponse

public MobileResponse(javax.servlet.http.HttpServletResponse response)
Construct the mobile response object

Parameters:
response - the HttpServletResponse object
Method Detail

handleServerException

public void handleServerException(ChannelContext channelContext,
                                  java.lang.Exception exception)
                           throws java.lang.Exception
Process the exception of the mobile server side. Convert the exception to MobileException and use serialization to pass the exception back to client.

Specified by:
handleServerException in interface ChannelResponse
Overrides:
handleServerException in class HttpChannelResponse
Parameters:
channelContext - the channelContext object
exception - the exception throws by the server side
Throws:
java.lang.Exception - The exception description.

IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2010