com.ibm.btt.cs.html
Class ExtendHtmlPresentationHandler
java.lang.Object
com.ibm.btt.clientserver.DSEPresentationHandler
com.ibm.btt.cs.html.HtmlPresentationHandler
com.ibm.btt.cs.html.ExtendHtmlPresentationHandler
- All Implemented Interfaces:
- PresentationHandler
public class ExtendHtmlPresentationHandler
- extends HtmlPresentationHandler
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExtendHtmlPresentationHandler
public ExtendHtmlPresentationHandler()
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.ChannelContextoperation
- 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 forwardedreq
- javax.servlet.HttpServletRequest Request objectres
- javax.servlet.HttpServletResponse Response objectchannelContext
- 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.ChannelContexte
- 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)
(c) Copyright IBM Corporation 1998, 2011