IBM Branch Transformation Toolkit Javadoc

com.ibm.btt.cs.servlet
Class CSAssignServiceIdAndServerTIDProtocolServlet

java.lang.Object
  extended byjavax.servlet.GenericServlet
      extended byjavax.servlet.http.HttpServlet
          extended bycom.ibm.btt.cs.servlet.CSReqServlet
              extended bycom.ibm.btt.cs.servlet.CSEstablishSessionServlet
                  extended bycom.ibm.btt.cs.servlet.CSAssignServiceIdAndServerTIDProtocolServlet
All Implemented Interfaces:
ChannelDriver, java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class CSAssignServiceIdAndServerTIDProtocolServlet
extends CSEstablishSessionServlet

The CSAssignServiceIdAndServerTIDProtocolServlet extends CSEstablishSessionServlet class

This servlet defines the front door for all java client devices supporting the HTTP protocol and should be invoked to establish the session between the client and the server

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.ibm.btt.cs.servlet.CSReqServlet
javaClientException, javaClientTrace
 
Constructor Summary
CSAssignServiceIdAndServerTIDProtocolServlet()
          CSEstablishSessionProtocolServlet constructor
 
Method Summary
protected  void handleServerResponse(ChannelContext channelContext, java.lang.Exception ex)
          Convenience method to ensure that a response is returned to the java client for the case where no presentation handler exists because the server is not initialized
 void parseRequestData(ChannelContext channelContext)
          Parse the input stream from the the HttpServletRequest Parse to the request data into the KeyedCollection.
 void preProcessRequest(ChannelContext channelContext)
          Perform any session management/control required at the device level.
 
Methods inherited from class com.ibm.btt.cs.servlet.CSEstablishSessionServlet
getSessionId, service
 
Methods inherited from class com.ibm.btt.cs.servlet.CSReqServlet
createChannelContext, createChannelHandler, getDeviceType, getPresentationHandler, getRequestHandler, handleException, handleException, parseRequestHeader, runInSession, updateChannelHandler, usingCookies
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CSAssignServiceIdAndServerTIDProtocolServlet

public CSAssignServiceIdAndServerTIDProtocolServlet()
CSEstablishSessionProtocolServlet constructor

Method Detail

handleServerResponse

protected void handleServerResponse(ChannelContext channelContext,
                                    java.lang.Exception ex)
                             throws java.lang.Exception
Convenience method to ensure that a response is returned to the java client for the case where no presentation handler exists because the server is not initialized

Overrides:
handleServerResponse in class CSReqServlet
Parameters:
channelContext - com.ibm.btt.clientserver.ChannelContext
ex - java.lang.Exception
Throws:
java.lang.Exception

parseRequestData

public void parseRequestData(ChannelContext channelContext)
                      throws java.lang.Exception
Parse the input stream from the the HttpServletRequest

Parse to the request data into the KeyedCollection. Add the kColl to the ChannelContext request data

If the channel is using cookies to support session id, initially the session id and server id are passed in the request

Specified by:
parseRequestData in interface ChannelDriver
Overrides:
parseRequestData in class CSReqServlet
Parameters:
channelContext - com.ibm.btt.clientserver.ChannelContext
Throws:
java.lang.Exception

preProcessRequest

public void preProcessRequest(ChannelContext channelContext)
                       throws DSECSSessionNotEstablishedException
Perform any session management/control required at the device level.

Insert the channel session into the ChannelContext. Additional requirements for the java client

Create an new instance of the session if:

  1. request sessionid and serverid are valid (-1 = invalid)
  2. request serverid is not the same as the current server serverid

Specified by:
preProcessRequest in interface ChannelDriver
Overrides:
preProcessRequest in class CSEstablishSessionServlet
Parameters:
channelContext - com.ibm.btt.clientserver.ChannelContext
Throws:
DSECSSessionNotEstablishedException

IBM Branch Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2005