com.ibm.dse.cs.html
Class HtmlPresentationHandler
java.lang.Object
|
+--com.ibm.dse.clientserver.DSEPresentationHandler
|
+--com.ibm.dse.cs.html.HtmlPresentationHandler
- public class HtmlPresentationHandler
- extends DSEPresentationHandler
Forward responses from the Html Client component to the client browser.
Responses are forwarded to either the reply page or the error page as
specified by the completed operation context or by information saved
in the HttpServletRequest by the framework.
Method Summary |
protected void |
forward(java.lang.String replyPageName,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
ChannelContext channelContext)
Obtain a RequestDispatcher for the replyPageName passed in and forward
the response to this page. |
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. |
void |
processException(ChannelContext channelContext,
java.lang.Exception exception)
Obtain the error page name from DSE.INI settings and forward the
response to that page. |
void |
processReply(ChannelContext channelContext,
ServerOperation operation)
Obtain the name of the page to display and forward the request to that page. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
HtmlPresentationHandler
public HtmlPresentationHandler()
- HtmlPresentationHandler default constructor.
forward
protected void forward(java.lang.String replyPageName,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
ChannelContext channelContext)
- Obtain a RequestDispatcher for the replyPageName passed in and forward
the response to this page.
handleException
public 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. If we have access to an
HtmlServletResponse, we will use it. Otherwise we just record the
error to the System.err stream.
- Parameters:
channelContext
- com.ibm.dse.clientserver.ChannelContexte
- java.lang.Exception
processException
public void processException(ChannelContext channelContext,
java.lang.Exception exception)
- Obtain the error page name from DSE.INI settings and forward the
response to that page.
- Overrides:
- processException in class DSEPresentationHandler
- Parameters:
channelContext
- com.ibm.dse.clientserver.ChannelContexte
- java.lang.Exception
processReply
public void processReply(ChannelContext channelContext,
ServerOperation operation)
- Obtain the name of the page to display and forward the request to that page.
- Overrides:
- processReply in class DSEPresentationHandler
- Parameters:
channelContext
- com.ibm.dse.clientserver.ChannelContextoperation
- com.ibm.dse.base.ServerOperation