IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

com.ibm.btt.channel
Class BTTChannelRequest

java.lang.Object
  extended by com.ibm.btt.channel.BTTChannelRequest
All Implemented Interfaces:
ChannelRequest
Direct Known Subclasses:
HttpChannelRequest

public abstract class BTTChannelRequest
extends java.lang.Object
implements ChannelRequest

The superclass of the channel request. This provides some utility method for subclass to get the settings from the configuration file.


Field Summary
protected static BTTLog log
           
 
Constructor Summary
BTTChannelRequest()
           
 
Method Summary
 boolean runInSession(ChannelContext channelContext)
          Determines from the HandlerRegistry whether the device type should run in a session.
protected  boolean usingCookies(ChannelContext channelContext)
          Determines from the HandlerRegistry whether the device type is using cookies to manage the session.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.ibm.btt.channel.ChannelRequest
getAttribute, getCharacterEncoding, getRequest, getSessionId, getUserType, parseRequestData, parseRequestHeader, preProcessRequest, setAttribute, setCharacterEncoding
 

Field Detail

log

protected static final BTTLog log
Constructor Detail

BTTChannelRequest

public BTTChannelRequest()
Method Detail

usingCookies

protected boolean usingCookies(ChannelContext channelContext)
Determines from the HandlerRegistry whether the device type is using cookies to manage the session. The default is to not use cookies to support backwards compatibility.

Parameters:
channelContext - com.ibm.btt.clientserver.ChannelContext
Returns:
boolean - Returns true if the device is using cookies

runInSession

public boolean runInSession(ChannelContext channelContext)
Determines from the HandlerRegistry whether the device type should run in a session. Running in a session requires that the application have a valid session and the operation has a parent context. The default is to always run in a session to support backwards compatibility. If the request is to run outside of a session, this method adds "dse_ignore" to the application ID.

Specified by:
runInSession in interface ChannelRequest
Parameters:
channelContext - ctx
Returns:
boolean - Returns true to run in a session
Throws:
DSECSSessionNotEstablishedException - throw error

IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2011