com.ibm.dse.clientserver
Interface PresentationHandler

All Known Implementing Classes:
DSEPresentationHandler

public interface PresentationHandler

The PresentationHandler interface

The presentation handler will be responsible to process the reply from the operation or process and render the output for the specific channel. This interface should also detail the extension points for all channel drivers.

Any object implementing this interface will have to provide the ability to:

  1. - process a reply to a device
  2. - process a session reply to a device
  3. - process exceptions to a device
  4. - handle exceptions during execution


Method Summary
 void processException(ChannelContext channelContext, java.lang.Exception exception)
          Process the exception for the client device
 void processReply(ChannelContext channelContext, ServerOperation operation)
          Process the reply for the client device
 void processSessionReply(ChannelContext channelContext)
          Process the session reply for the client device
 

Method Detail

processException

public void processException(ChannelContext channelContext,
                             java.lang.Exception exception)
Process the exception for the client device

The public API that will be invoked by the request handler should an exception occur within the operation or process. This will determine how to render the exception to the device

Parameters:
channelContext - com.ibm.dse.clientserver.ChannelContext
ex - java.lang.Exception

processReply

public void processReply(ChannelContext channelContext,
                         ServerOperation operation)
Process the reply for the client device

The main API that will be invoked by the request handler that will define the process flow for the presentation handler and process and render the output to the device given an operation.

Parameters:
channelContext - com.ibm.dse.clientserver.ChannelContext
operation - com.ibm.dse.base.ServerOperation

processSessionReply

public void processSessionReply(ChannelContext channelContext)
Process the session reply for the client device

The main API that will be invoked by the request handler that will define the process flow of the presentation handler and process and render the ouput to the device when the session is established.

Parameters:
channelContext - com.ibm.dse.clientserver.ChannelContext