IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

com.ibm.btt.cs.java
Class JavaPresentationHandler

java.lang.Object
  extended by com.ibm.btt.clientserver.DSEPresentationHandler
      extended by com.ibm.btt.cs.java.JavaPresentationHandler
All Implemented Interfaces:
PresentationHandler

public class JavaPresentationHandler
extends DSEPresentationHandler

This class extends DSEPresentationHandler abstract class.

The implementation is used by the java clients to render responses of the information or exceptions.


Field Summary
 
Fields inherited from class com.ibm.btt.clientserver.DSEPresentationHandler
javaClientException, javaClientTrace
 
Constructor Summary
JavaPresentationHandler()
           
 
Method Summary
 void commitSessionCtx(ChannelContext channelContext)
          Commit Session Context to DB to support fail over
protected  java.lang.String getSessionId(ChannelContext aChannelContext)
          Convenience method to determine the session id from the channel session
 void processException(ChannelContext channelContext, java.lang.Exception exception)
          Process the exception for the java client Response is sent to the client in the char encoding specified in dse.ini file.
 void processReply(ChannelContext channelContext, java.lang.Object response)
          Pass the response back to the client
 void processSessionReply(ChannelContext channelContext)
          Process the session reply to the java client Response is sent to the client in the char encoding specified in dse.ini file.
 
Methods inherited from class com.ibm.btt.clientserver.DSEPresentationHandler
handleException, usingCookies
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaPresentationHandler

public JavaPresentationHandler()
Method Detail

getSessionId

protected java.lang.String getSessionId(ChannelContext aChannelContext)
Convenience method to determine the session id from the channel session

Parameters:
aChannelContext - com.ibm.btt.clientserver.ChannelContext
Returns:
java.lang.String

processException

public void processException(ChannelContext channelContext,
                             java.lang.Exception exception)
Process the exception for the java client

Response is sent to the client in the char encoding specified in dse.ini file.

Potential exception codes required by the client to perform the necessary cleanup

  1. from CSS01 to CSS09 - Remote Exception on the server
  2. CSS00 - Session not established exception on the server

Specified by:
processException in interface PresentationHandler
Overrides:
processException in class DSEPresentationHandler
Parameters:
channelContext - com.ibm.btt.clientserver.ChannelContext
exception - Exception

processSessionReply

public void processSessionReply(ChannelContext channelContext)
Process the session reply to the java client

Response is sent to the client in the char encoding specified in dse.ini file.

Specified by:
processSessionReply in interface PresentationHandler
Overrides:
processSessionReply in class DSEPresentationHandler
Parameters:
channelContext - com.ibm.btt.clientserver.ChannelContext

processReply

public void processReply(ChannelContext channelContext,
                         java.lang.Object response)
Pass the response back to the client

Specified by:
processReply in interface PresentationHandler
Overrides:
processReply in class DSEPresentationHandler
Parameters:
channelContext - the channel context object
response - the response sent back to client

commitSessionCtx

public void commitSessionCtx(ChannelContext channelContext)
                      throws DSEInvalidRequestException,
                             DSEObjectNotFoundException
Commit Session Context to DB to support fail over

Parameters:
channelContext -
Throws:
DSEObjectNotFoundException
DSEInvalidRequestException

IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2009