IBM Branch Transformation Toolkit Javadoc

com.ibm.btt.cs.java
Class JavaPresentationHandler

java.lang.Object
  extended bycom.ibm.btt.clientserver.DSEPresentationHandler
      extended bycom.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()
          JavaPresentationHandler constructor.
 
Method Summary
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.String responseData)
          If using Invoker-Pattern, the PresentationHandler will pass the responseData(formatted by invoker) to client directly
 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()
JavaPresentationHandler constructor.

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.String responseData)
If using Invoker-Pattern, the PresentationHandler will pass the responseData(formatted by invoker) to client directly

Specified by:
processReply in interface PresentationHandler
Overrides:
processReply in class DSEPresentationHandler
See Also:
PresentationHandler.processReply(ChannelContext, String)

IBM Branch Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2005