IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

com.ibm.btt.channel
Class HandlerUtils

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

public abstract class HandlerUtils
extends java.lang.Object

The utility class used to get the value from the channel handler


Constructor Summary
HandlerUtils()
           
 
Method Summary
static java.lang.Object findRegistryValue(java.lang.String deviceType, java.lang.String key)
          The utility method used to get the registered value from the channel handler
static boolean getCreateSessionValue(ChannelContext channelContext)
          Find the create session value from request data
static PresentationHandler getPresentationHandler(java.lang.String device)
          Determines the PresentationHandler to invoke for the specific channel driver and obtains the presenation handler from the HandlerRegistry.
static java.lang.Object getRegistryValue(java.lang.String deviceType, java.lang.String key)
          The utility method used to get the registered value from the channel handler
static RequestHandler getRequestHandler(java.lang.String device)
          Determines the RequestHandler to invoke for the specific channel driver and obtains the request handler from the HandlerRegistry.
static void setCreateSessionValue(ChannelContext channelContext)
          Find the create session value from request data
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HandlerUtils

public HandlerUtils()
Method Detail

findRegistryValue

public static java.lang.Object findRegistryValue(java.lang.String deviceType,
                                                 java.lang.String key)
The utility method used to get the registered value from the channel handler

Parameters:
deviceType - the client device type
key - the registered key
Returns:
the value that registered in the channel handler, return null if not found

getRegistryValue

public static java.lang.Object getRegistryValue(java.lang.String deviceType,
                                                java.lang.String key)
                                         throws DSEObjectNotFoundException
The utility method used to get the registered value from the channel handler

Parameters:
deviceType - the client device type
key - the registered key
Returns:
the value that registered in the channel handler
Throws:
DSEObjectNotFoundException - if not found

getRequestHandler

public static RequestHandler getRequestHandler(java.lang.String device)
                                        throws DSENoRegisteredRequestHandlerException
Determines the RequestHandler to invoke for the specific channel driver and obtains the request handler from the HandlerRegistry.

Parameters:
channelContext - com.ibm.btt.clientserver.ChannelContext
Returns:
com.ibm.btt.clientserver.RequestHandler
Throws:
DSENoRegisteredRequestHandlerException - throws when request handler isn't found

getPresentationHandler

public static PresentationHandler getPresentationHandler(java.lang.String device)
                                                  throws DSENoRegisteredPresentationHandlerException
Determines the PresentationHandler to invoke for the specific channel driver and obtains the presenation handler from the HandlerRegistry.

Parameters:
channelContext - com.ibm.btt.clientserver.ChannelContext
Returns:
com.ibm.btt.clientserver.PresenationHandler
Throws:
DSENoRegisteredPresentationHandlerException - throws when presenation handler isn't found

getCreateSessionValue

public static boolean getCreateSessionValue(ChannelContext channelContext)
Find the create session value from request data

Parameters:
channelContext - the channel context
Returns:
true if find the value and the value is "true" otherwise return false

setCreateSessionValue

public static void setCreateSessionValue(ChannelContext channelContext)
Find the create session value from request data

Parameters:
channelContext - the channel context
Throws:
DSEInvalidArgumentException

IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2011