IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

com.ibm.btt.http
Class JavaAssignChannelRequest

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
                  extended by com.ibm.btt.http.JavaAssignChannelRequest
All Implemented Interfaces:
ChannelRequest

public class JavaAssignChannelRequest
extends JavaEstablishSessionRequest

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


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
JavaAssignChannelRequest(javax.servlet.http.HttpServletRequest request)
          Construct the JavaAssignChannelRequest object
 
Method Summary
 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.http.HttpChannelRequest
checkSession, getAttribute, getCharacterEncoding, getRequest, getSessionId, getUserType, 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

JavaAssignChannelRequest

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

Parameters:
request - the HttpServletRequest object
Method Detail

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 ChannelRequest
Overrides:
parseRequestData in class HttpChannelRequest
Parameters:
channelContext - com.ibm.btt.clientserver.ChannelContext
Throws:
java.lang.Exception - if error occur during parsing

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 ChannelRequest
Overrides:
preProcessRequest in class JavaEstablishSessionRequest
Parameters:
channelContext - com.ibm.btt.clientserver.ChannelContext
Throws:
DSECSSessionNotEstablishedException

IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2009