IBM Branch Transformation Toolkit Javadoc

com.ibm.btt.cs.java
Class JavaRequestHandler

java.lang.Object
  extended bycom.ibm.btt.clientserver.DSERequestHandler
      extended bycom.ibm.btt.cs.java.JavaRequestHandler
All Implemented Interfaces:
RequestHandler

public class JavaRequestHandler
extends DSERequestHandler

This class implements RequestHandler interface and extends JavaRequestHandler.

This class provides the implementation specific for the java client types


Field Summary
 
Fields inherited from class com.ibm.btt.clientserver.DSERequestHandler
errorCode, javaClientException, javaClientTrace, USING_WORKAREA
 
Constructor Summary
JavaRequestHandler()
          JavaRequestHandler constructor.
 
Method Summary
protected  java.lang.String executeRequest(ChannelContext channelContext)
          Perform the operation for the Java client.
protected  void executeSession(ChannelContext channelContext)
          To support multiple client types using the same session the Java client requires additional processing to check the application session table for a valid id The parameter "createSession" can exist in the data kColl only
protected  java.lang.String getSessionId(ChannelContext aChannelContext)
          Convenience method to dertermine the session id from the channel session
protected  void preProcessRequest(ChannelContext channelContext)
          Extend this method to perform any initial processing required by the request handler Verify that the server is started and the environment is initialized
 
Methods inherited from class com.ibm.btt.clientserver.DSERequestHandler
checkExecutionPermission, getPresentationHandler, handleException, handleException, isWorkAreaUsed, process, processRequest, processSessionRequest, usingCookies
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaRequestHandler

public JavaRequestHandler()
JavaRequestHandler constructor.

Method Detail

executeRequest

protected java.lang.String executeRequest(ChannelContext channelContext)
                                   throws java.lang.Exception
Perform the operation for the Java client. It may generate the following error codes during the process: CSS02, CSS03, CSS04, CSS05, CSS06, CSS07.

Overrides:
executeRequest in class DSERequestHandler
Parameters:
channelContext - com.ibm.btt.clientserver.ChannelContext
Returns:
aServerOperation com.ibm.btt.base.ServerOperation
Throws:
java.lang.Exception

executeSession

protected void executeSession(ChannelContext channelContext)
                       throws java.lang.Exception
To support multiple client types using the same session the Java client requires additional processing to check the application session table for a valid id The parameter "createSession" can exist in the data kColl only

Overrides:
executeSession in class DSERequestHandler
Parameters:
channelContext - com.ibm.btt.clientserver.ChannelContext
Throws:
java.lang.Exception.
java.lang.Exception

getSessionId

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

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

preProcessRequest

protected void preProcessRequest(ChannelContext channelContext)
                          throws DSEException
Extend this method to perform any initial processing required by the request handler

Verify that the server is started and the environment is initialized

Overrides:
preProcessRequest in class DSERequestHandler
Parameters:
channelContext - com.ibm.btt.clientserver.ChannelContext
Throws:
DSEException

IBM Branch Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2005