com.ibm.dse.cs.java
Class JavaPresentationHandler

java.lang.Object
  |
  +--com.ibm.dse.clientserver.DSEPresentationHandler
        |
        +--com.ibm.dse.cs.java.JavaPresentationHandler
Direct Known Subclasses:
XmlPresentationHandler

public class JavaPresentationHandler
extends DSEPresentationHandler

This class extends DSEPresentationHandler abstract class.

The implementation is used by the java clients to render responses of the information or exceptions.


Constructor Summary
JavaPresentationHandler()
          JavaPresentationHandler constructor.
 
Method Summary
protected  java.lang.String getSessionId(ChannelContext aChannelContext)
          Convenience method to determine the session id from the channel session
 void processException(ChannelContext channelContext, java.lang.Exception exception)
          Process the exception for the java client.
 void processReply(ChannelContext channelContext, ServerOperation operation)
          Process the reply for a java client.
 void processSessionReply(ChannelContext channelContext)
          Process the session reply to the java client
 
Methods inherited from class com.ibm.dse.clientserver.DSEPresentationHandler
handleException, usingCookies
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaPresentationHandler

public JavaPresentationHandler()
JavaPresentationHandler constructor.
Method Detail

getSessionId

protected java.lang.String getSessionId(ChannelContext aChannelContext)
Convenience method to determine the session id from the channel session
Parameters:
aChannelContext - com.ibm.dse.clientserver.ChannelContext
Returns:
java.lang.String

processException

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

Response is sent to the client in UTF8 format

Potential exception codes required by the client to perform the necessary cleanup

  1. 2 - Remote Exception on the server
  2. 5 - Session not established exception on the server
Overrides:
processException in class DSEPresentationHandler
Parameters:
channelContext - com.ibm.dse.clientserver.ChannelContext
exception - Exception

processReply

public void processReply(ChannelContext channelContext,
                         ServerOperation operation)
Process the reply for a java client.

Response is sent to the client in UTF8 format

Overrides:
processReply in class DSEPresentationHandler
Parameters:
channelContext - com.ibm.dse.clientserver.ChannelContext
aServerOperation - com.ibm.dse.base.ServerOperation

processSessionReply

public void processSessionReply(ChannelContext channelContext)
Process the session reply to the java client

Response is sent to the client in UTF8 format

Overrides:
processSessionReply in class DSEPresentationHandler
Parameters:
channelContext - com.ibm.dse.clientserver.ChannelContext