com.ibm.btt.mobile
Class MobilePresentationHandler
java.lang.Object
com.ibm.btt.clientserver.DSEPresentationHandler
com.ibm.btt.mobile.MobilePresentationHandler
- All Implemented Interfaces:
- PresentationHandler
public class MobilePresentationHandler
- extends DSEPresentationHandler
The btt predefined presentationHandler to handle the response sent to mobile client.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MobilePresentationHandler
public MobilePresentationHandler()
processReply
public void processReply(ChannelContext channelContext,
java.lang.Object result)
- Process a response for a client.
Use serialization to pass the result back to client.
- Specified by:
processReply
in interface PresentationHandler
- Overrides:
processReply
in class DSEPresentationHandler
- Parameters:
channelContext
- the channel context objectresult
- the result send to client side
processException
public void processException(ChannelContext channelContext,
java.lang.Exception 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:
processException
in interface PresentationHandler
- Overrides:
processException
in class DSEPresentationHandler
- Parameters:
channelContext
- the channelContext objectexception
- the exception throws by the server side
commitSessionCtx
public void commitSessionCtx(ChannelContext channelContext)
- Commit the session context
- Parameters:
channelContext
- the channel context object
(c) Copyright IBM Corporation 1998, 2011