com.ibm.dse.clientserver
Class DSEPresentationHandler

java.lang.Object
  |
  +--com.ibm.dse.clientserver.DSEPresentationHandler
Direct Known Subclasses:
HtmlPresentationHandler, 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


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, ServerOperation aServerOperation)
          Process a reply to a client for a particular device Extend to implement the channel specific behaviour
 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
 

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:
exception - 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.dse.clientserver.ChannelContext
exception - Exception

processReply

public void processReply(ChannelContext channelContext,
                         ServerOperation aServerOperation)
Process a reply to a client for a particular device Extend to implement the channel specific behaviour
Specified by:
processReply in interface PresentationHandler
Parameters:
channelContext - com.ibm.dse.clientserver.ChannelContext
aServerOperation - com.ibm.dse.base.ServerOperation

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.dse.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.dse.clientserver.ChannelContext
Returns:
boolean