IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

com.ibm.btt.channel
Class ChannelContextContainer

java.lang.Object
  extended by com.ibm.btt.channel.ChannelContextContainer
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
WebChannelContext

public class ChannelContextContainer
extends java.lang.Object
implements java.io.Serializable

The thread local container can be used in the operation to get the channel request, channel response and channel session.

See Also:
Serialized Form

Constructor Summary
ChannelContextContainer()
           
 
Method Summary
static ChannelRequest getChannelRequest()
          Returns the channel request specific to the current thread.
static ChannelResponse getChannelResponse()
          Returns the channel response specific to the current thread.
static ChannelSession getChannelSession()
          Returns the channel session specific to the current thread.
static ChannelContext getContext()
          Returns the channel context specific to the current thread.
static void setContext(ChannelContext context)
          Sets the channel context for the current thread.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChannelContextContainer

public ChannelContextContainer()
Method Detail

setContext

public static void setContext(ChannelContext context)
Sets the channel context for the current thread.

Parameters:
context - the channel context

getContext

public static ChannelContext getContext()
Returns the channel context specific to the current thread.

Returns:
the channel context for the current thread, is never null

getChannelRequest

public static ChannelRequest getChannelRequest()
Returns the channel request specific to the current thread.

Returns:
the channel request for the current thread, is never null

getChannelResponse

public static ChannelResponse getChannelResponse()
Returns the channel response specific to the current thread.

Returns:
the channel response for the current thread, is never null

getChannelSession

public static ChannelSession getChannelSession()
Returns the channel session specific to the current thread.

Returns:
the channel session for the current thread, is never null

IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2010