IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

com.ibm.btt.channel
Class SessionHandler

java.lang.Object
  extended by com.ibm.btt.channel.SessionHandler

public class SessionHandler
extends java.lang.Object

The utility method used to handle BTT session


Method Summary
static void addSessionEntry(java.lang.String sessionId, java.lang.String key, java.lang.Object value)
          add value to session context
static Context findCurrentContextForSession(java.lang.String aSessionID)
          Returns the current Context for the specified sessionId.
static java.lang.Object findSessionValue(java.lang.String sessionId, java.lang.String key)
          Try to get value from session context, if it isn't found, it will return null.
static Context getCurrentContextForSession(java.lang.String aSessionID)
          Returns the current Context for the specified sessionId.
static Context getCurrentContextForSession(java.lang.String aSessionID, java.lang.String aApplicationID)
          Returns the current Context for the specified sessionId and applicationId.
static java.lang.Object getSessionValue(java.lang.String sessionId, java.lang.String key)
          Use the key to find the value from session context It will throw exception if the session entry can't be found
static void removeSessionEntry(java.lang.String sessionId, java.lang.String key)
          remove the value from session context
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getCurrentContextForSession

public static Context getCurrentContextForSession(java.lang.String aSessionID)
                                           throws DSEInvalidRequestException,
                                                  DSEObjectNotFoundException
Returns the current Context for the specified sessionId.

Parameters:
aSessionID -
Returns:
Context
Throws:
DSEInvalidRequestException
DSEObjectNotFoundException

findCurrentContextForSession

public static Context findCurrentContextForSession(java.lang.String aSessionID)
                                            throws DSEInvalidRequestException,
                                                   DSEObjectNotFoundException
Returns the current Context for the specified sessionId.

Parameters:
aSessionID -
Returns:
Context
Throws:
DSEInvalidRequestException
DSEObjectNotFoundException

getCurrentContextForSession

public static Context getCurrentContextForSession(java.lang.String aSessionID,
                                                  java.lang.String aApplicationID)
                                           throws DSEInvalidRequestException,
                                                  DSEObjectNotFoundException
Returns the current Context for the specified sessionId and applicationId.

Parameters:
aSessionID -
aApplicationID -
Returns:
Context
Throws:
DSEInvalidRequestException
DSEObjectNotFoundException

addSessionEntry

public static void addSessionEntry(java.lang.String sessionId,
                                   java.lang.String key,
                                   java.lang.Object value)
                            throws DSEInvalidRequestException,
                                   DSEObjectNotFoundException,
                                   DSEInvalidArgumentException
add value to session context

Parameters:
sessionId -
key -
value -
Throws:
DSEInvalidRequestException
DSEObjectNotFoundException
DSEInvalidArgumentException

removeSessionEntry

public static void removeSessionEntry(java.lang.String sessionId,
                                      java.lang.String key)
                               throws DSEInvalidRequestException,
                                      DSEObjectNotFoundException,
                                      DSEInvalidArgumentException
remove the value from session context

Parameters:
sessionId -
key -
Throws:
DSEInvalidRequestException
DSEObjectNotFoundException
DSEInvalidArgumentException

getSessionValue

public static java.lang.Object getSessionValue(java.lang.String sessionId,
                                               java.lang.String key)
                                        throws DSEInvalidRequestException,
                                               DSEObjectNotFoundException
Use the key to find the value from session context It will throw exception if the session entry can't be found

Parameters:
sessionId -
key -
Returns:
Throws:
DSEObjectNotFoundException
DSEInvalidRequestException
java.lang.Exception

findSessionValue

public static java.lang.Object findSessionValue(java.lang.String sessionId,
                                                java.lang.String key)
                                         throws DSEInvalidRequestException,
                                                DSEObjectNotFoundException
Try to get value from session context, if it isn't found, it will return null.

Parameters:
sessionId -
key -
Returns:
Throws:
DSEInvalidRequestException
DSEObjectNotFoundException

IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2010