IBM Branch Transformation Toolkit Javadoc

com.ibm.btt.clientserver
Class DSEPresentationHandler

java.lang.Object
  extended bycom.ibm.btt.clientserver.DSEPresentationHandler
All Implemented Interfaces:
PresentationHandler
Direct Known Subclasses:
JavaPresentationHandler

public abstract class DSEPresentationHandler
extends java.lang.Object
implements PresentationHandler

This class implements PresentationHandler interface.

This is the abstract implementation that should be extended by all channel specific request handlers


Field Summary
protected  java.util.ResourceBundle javaClientException
           
protected  java.util.ResourceBundle javaClientTrace
           
 
Constructor Summary
DSEPresentationHandler()
          DSEPresentationHandler constructor.
 
Method Summary
 void handleException(java.lang.Exception ex)
          Handle the exceptions raised by the presentation handler Log the exception to the server trace console if enabled
 void processException(ChannelContext channelContext, java.lang.Exception exception)
          Process an exception to a client for a particular device Extend to implement the channel specific behaviour
 void processReply(ChannelContext channelContext, java.lang.String responseData)
          If using Invoker-Pattern, the PresentationHandler will pass the responseData(formatted by invoker) to client directly
 void processSessionReply(ChannelContext channelContext)
          Process a session reply to a client for a particular device Extend to implement the channel specific behaviour
protected  boolean usingCookies(ChannelContext channelContext)
          Convenience method to determine if cookies are being used to manage the client server session for the specified device type By default using cookies is false
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

javaClientException

protected java.util.ResourceBundle javaClientException

javaClientTrace

protected java.util.ResourceBundle javaClientTrace
Constructor Detail

DSEPresentationHandler

public DSEPresentationHandler()
DSEPresentationHandler constructor.

Method Detail

handleException

public void handleException(java.lang.Exception ex)
Handle the exceptions raised by the presentation handler Log the exception to the server trace console if enabled

Parameters:
ex - java.lang.Exception

processException

public void processException(ChannelContext channelContext,
                             java.lang.Exception exception)
Process an exception to a client for a particular device Extend to implement the channel specific behaviour

Specified by:
processException in interface PresentationHandler
Parameters:
channelContext - com.ibm.btt.clientserver.ChannelContext
exception - Exception

processSessionReply

public void processSessionReply(ChannelContext channelContext)
Process a session reply to a client for a particular device Extend to implement the channel specific behaviour

Specified by:
processSessionReply in interface PresentationHandler
Parameters:
channelContext - com.ibm.btt.clientserver.ChannelContext

usingCookies

protected boolean usingCookies(ChannelContext channelContext)
Convenience method to determine if cookies are being used to manage the client server session for the specified device type By default using cookies is false

Parameters:
channelContext - com.ibm.btt.clientserver.ChannelContext
Returns:
boolean

processReply

public void processReply(ChannelContext channelContext,
                         java.lang.String responseData)
If using Invoker-Pattern, the PresentationHandler will pass the responseData(formatted by invoker) to client directly

Specified by:
processReply in interface PresentationHandler
See Also:
PresentationHandler.processReply(ChannelContext, String)

IBM Branch Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2005