IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

com.ibm.btt.http
Class JavaEstablishSessionRequest

java.lang.Object
  extended by com.ibm.btt.channel.BTTChannelRequest
      extended by com.ibm.btt.http.HttpChannelRequest
          extended by com.ibm.btt.http.JavaHttpChannelRequest
              extended by com.ibm.btt.http.JavaEstablishSessionRequest
All Implemented Interfaces:
ChannelRequest
Direct Known Subclasses:
JavaAssignChannelRequest, RemoteChannelRequest

public class JavaEstablishSessionRequest
extends JavaHttpChannelRequest

The channel request used to wrap the HttpServletRequest. This request used by CSEstablishSessionServlet


Field Summary
 
Fields inherited from class com.ibm.btt.http.JavaHttpChannelRequest
javaClientException, javaClientTrace
 
Fields inherited from class com.ibm.btt.http.HttpChannelRequest
request
 
Constructor Summary
JavaEstablishSessionRequest(javax.servlet.http.HttpServletRequest request)
          Construct the JavaEstablishSessionRequest object
 
Method Summary
 void preProcessRequest(ChannelContext channelContext)
          Performs the session managment required to support HTTP and custom session management.
 
Methods inherited from class com.ibm.btt.http.HttpChannelRequest
checkSession, getAttribute, getCharacterEncoding, getRequest, getSessionId, getUserType, parseRequestData, parseRequestHeader, setAttribute, setCharacterEncoding
 
Methods inherited from class com.ibm.btt.channel.BTTChannelRequest
runInSession, usingCookies
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaEstablishSessionRequest

public JavaEstablishSessionRequest(javax.servlet.http.HttpServletRequest request)
Construct the JavaEstablishSessionRequest object

Parameters:
request - the HttpServletRequest object
Method Detail

preProcessRequest

public void preProcessRequest(ChannelContext channelContext)
                       throws DSECSSessionNotEstablishedException
Performs the session managment required to support HTTP and custom session management. This method updates the ChannelContext with the session and must provide support for using cookies and hidden form field to manage the session.
  1. Create the session if the request is for a new session. The session is new if the header or the data contains a newsession tag with the value=true
  2. Create an HttpSession if using cookies or create a DSEChannelSession if not
  3. Create an entry in the sessions table for a new session

Specified by:
preProcessRequest in interface ChannelRequest
Overrides:
preProcessRequest in class JavaHttpChannelRequest
Parameters:
channelContext - com.ibm.btt.clientserver.ChannelContext
Throws:
DSECSSessionNotEstablishedException - if the session isn't established

IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2011