IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

com.ibm.btt.cs.sessionpropagation
Class SessionPropagationWithSystemData

java.lang.Object
  extended by com.ibm.btt.cs.sessionpropagation.SessionPropagationWithSystemData
All Implemented Interfaces:
SessionPropagation

public class SessionPropagationWithSystemData
extends java.lang.Object
implements SessionPropagation

This implementation of SessionPropagation interface will use SystemData (non-WorkArea environment) as Session Propagation.


Constructor Summary
SessionPropagationWithSystemData()
           
 
Method Summary
 BTTSystemData beginSessionPropagation()
          When begin session propagation, it will create WorkArea at first, and then set the session data into it.
 void endSessionPropagation()
          Terminates the work area when processing is done.
 ChannelContext getChannelContext()
          Returns the channelContext.
 Context getContext()
           
 void setChannelContext(ChannelContext channelContext)
          Sets the channelContext.
 void setContext(Context aContext)
          Set Context Object for retrieving session data
 void setSession(ChannelSession sessionObject)
          Set ChannelSession Object for retrieving session data
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SessionPropagationWithSystemData

public SessionPropagationWithSystemData()
Method Detail

beginSessionPropagation

public BTTSystemData beginSessionPropagation()
                                      throws java.lang.Exception
When begin session propagation, it will create WorkArea at first, and then set the session data into it. Having to said that because session propagation will be used for not only the automaton, but also the RequestHandler, two ways to support for retrieving session data - from Context or ChannelContext

Specified by:
beginSessionPropagation in interface SessionPropagation
Returns:
Object If using WorkArea, nothing should be returned; Otherwise, SystemData Object should be returned.
Throws:
java.lang.Exception - Any Exception when begin Session Propagation.
See Also:
SessionPropagation.beginSessionPropagation()

endSessionPropagation

public void endSessionPropagation()
Terminates the work area when processing is done.

Specified by:
endSessionPropagation in interface SessionPropagation
See Also:
SessionPropagation.endSessionPropagation()

setChannelContext

public void setChannelContext(ChannelContext channelContext)
Sets the channelContext.

Specified by:
setChannelContext in interface SessionPropagation
Parameters:
channelContext - The channelContext to set

getChannelContext

public ChannelContext getChannelContext()
Returns the channelContext.

Returns:
ChannelContext

setSession

public void setSession(ChannelSession sessionObject)
Description copied from interface: SessionPropagation
Set ChannelSession Object for retrieving session data

Specified by:
setSession in interface SessionPropagation
Parameters:
sessionObject - session object

setContext

public void setContext(Context aContext)
Description copied from interface: SessionPropagation
Set Context Object for retrieving session data

Specified by:
setContext in interface SessionPropagation
Parameters:
aContext - Automaton Context

getContext

public Context getContext()
Returns:
Context

IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2009