IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

com.ibm.btt.cs.html
Class ExtendHtmlPresentationHandler

java.lang.Object
  extended by com.ibm.btt.clientserver.DSEPresentationHandler
      extended by com.ibm.btt.cs.html.HtmlPresentationHandler
          extended by com.ibm.btt.cs.html.ExtendHtmlPresentationHandler
All Implemented Interfaces:
PresentationHandler

public class ExtendHtmlPresentationHandler
extends HtmlPresentationHandler


Field Summary
 
Fields inherited from class com.ibm.btt.clientserver.DSEPresentationHandler
javaClientException, javaClientTrace
 
Constructor Summary
ExtendHtmlPresentationHandler()
           
 
Method Summary
protected  void clearAttribute(KeyedCollection kColl, java.lang.String fieldName)
           
protected  void forward(java.lang.String replyPageName, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, ChannelContext channelContext)
          Obtains a RequestDispatcher for the replyPageName passed in and forwards the response to this page.
protected  void forward(java.lang.String replyPageName, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, ChannelContext channelContext, JSONObject response)
           
 java.lang.String getRemoteParentAjaxURL(javax.servlet.http.HttpServletRequest req)
           
 java.lang.String getRemoteParentRequestURL(javax.servlet.http.HttpServletRequest req)
           
 void handleException(ChannelContext channelContext, java.lang.Exception e)
          When an error occurs attempting to return to the client browser, it may not be possible to return the error.
 JSONObject mapSessionContextToRemoteFlow(JSONObject remoteJsonData, Context sessionCtx)
           
 void processReply(ChannelContext channelContext, java.lang.Object operation)
          Obtain the name of the page to display and forward the request to that page.
protected  void replyDoNothing(javax.servlet.http.HttpServletResponse res)
          Reply to client side with command: COMMAND_DO_NOTHING.
 
Methods inherited from class com.ibm.btt.cs.html.HtmlPresentationHandler
addFieldTo, addRequiredDataToSessionCtx, clearUp, getJspBasePath, getOrgRequest, getOrgResponse, getRVS, getSessionId, handleException, processException
 
Methods inherited from class com.ibm.btt.clientserver.DSEPresentationHandler
handleException, processSessionReply, usingCookies
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExtendHtmlPresentationHandler

public ExtendHtmlPresentationHandler()
Method Detail

processReply

public void processReply(ChannelContext channelContext,
                         java.lang.Object operation)
Description copied from class: HtmlPresentationHandler
Obtain the name of the page to display and forward the request to that page.

Specified by:
processReply in interface PresentationHandler
Overrides:
processReply in class HtmlPresentationHandler
Parameters:
channelContext - com.ibm.btt.clientserver.ChannelContext
operation - com.ibm.btt.base.ServerOperation

forward

protected void forward(java.lang.String replyPageName,
                       javax.servlet.http.HttpServletRequest req,
                       javax.servlet.http.HttpServletResponse res,
                       ChannelContext channelContext)
Description copied from class: HtmlPresentationHandler
Obtains a RequestDispatcher for the replyPageName passed in and forwards the response to this page. Once forwarded the page, this method flushes the buffer in order to force the launching of an exception if other request from same client is in process. Doing so double clicks are detected. The entry in the pendingRequestsTable is updated to let further requests notice that they are product of abnormal navigation.

Overrides:
forward in class HtmlPresentationHandler
Parameters:
replyPageName - java.lang.String The name of the page to be forwarded
req - javax.servlet.HttpServletRequest Request object
res - javax.servlet.HttpServletResponse Response object
channelContext - com.ibm.btt.clientserver.ChannelContext

forward

protected void forward(java.lang.String replyPageName,
                       javax.servlet.http.HttpServletRequest req,
                       javax.servlet.http.HttpServletResponse res,
                       ChannelContext channelContext,
                       JSONObject response)

handleException

public void handleException(ChannelContext channelContext,
                            java.lang.Exception e)
Description copied from class: HtmlPresentationHandler
When an error occurs attempting to return to the client browser, it may not be possible to return the error. If we have access to an HtmlServletResponse, we will use it. Otherwise we just record the error to the System.err stream.

Overrides:
handleException in class HtmlPresentationHandler
Parameters:
channelContext - com.ibm.btt.clientserver.ChannelContext
e - java.lang.Exception

replyDoNothing

protected final void replyDoNothing(javax.servlet.http.HttpServletResponse res)
                             throws java.io.IOException
Reply to client side with command: COMMAND_DO_NOTHING.

Parameters:
res -
Throws:
java.io.IOException

clearAttribute

protected void clearAttribute(KeyedCollection kColl,
                              java.lang.String fieldName)

mapSessionContextToRemoteFlow

public JSONObject mapSessionContextToRemoteFlow(JSONObject remoteJsonData,
                                                Context sessionCtx)

getRemoteParentRequestURL

public java.lang.String getRemoteParentRequestURL(javax.servlet.http.HttpServletRequest req)

getRemoteParentAjaxURL

public java.lang.String getRemoteParentAjaxURL(javax.servlet.http.HttpServletRequest req)

IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2011