|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.btt.clientserver.DSEPresentationHandler
com.ibm.btt.cs.html.HtmlPresentationHandler
public class HtmlPresentationHandler
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 toolkit.
Field Summary |
---|
Fields inherited from class com.ibm.btt.clientserver.DSEPresentationHandler |
---|
javaClientException, javaClientTrace |
Constructor Summary | |
---|---|
HtmlPresentationHandler()
HtmlPresentationHandler default constructor. |
Method Summary | |
---|---|
void |
addFieldTo(Context ctx,
java.lang.String name,
java.lang.Object value)
This method adds toolkit related fields to a context. |
protected void |
addRequiredDataToSessionCtx(java.lang.String sessionId,
javax.servlet.http.HttpServletRequest req)
The session context requires some data to be added to it. |
protected void |
clearUp(javax.servlet.http.HttpServletRequest req)
|
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 javax.servlet.http.HttpServletRequest |
getOrgRequest(ChannelContext channelContext)
|
protected javax.servlet.http.HttpServletResponse |
getOrgResponse(ChannelContext channelContext)
|
protected RequestValidationServices |
getRVS(ChannelContext cc)
Returns the RequestValidationServices instance associated with the current session. |
protected java.lang.String |
getSessionId(ChannelContext aChannelContext)
Obtains the session id from the channel context. |
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 btt.xml settings and forward the response to that page. |
void |
processReply(ChannelContext channelContext,
java.lang.Object operation)
Obtain the name of the page to display and forward the request to that page. |
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 |
---|
public HtmlPresentationHandler()
Method Detail |
---|
public void addFieldTo(Context ctx, java.lang.String name, java.lang.Object value) throws java.lang.Exception
java.lang.Exception
protected void addRequiredDataToSessionCtx(java.lang.String sessionId, javax.servlet.http.HttpServletRequest req)
sessionId
- java.lang.Stringreq
- HttpServletRequestprotected void forward(java.lang.String replyPageName, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, ChannelContext channelContext)
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.ChannelContextprotected RequestValidationServices getRVS(ChannelContext cc) throws DSEException
cc
- com.ibm.btt.clientserver.ChannelContext ChannelContext used to
get the session
DSEException
- Either it is not possible to retrieve a sessionId from the
channelContext or there is no session associated with the
sessionId.protected java.lang.String getSessionId(ChannelContext aChannelContext)
aChannelContext
- com.ibm.btt.clientserver.ChannelContext
protected void clearUp(javax.servlet.http.HttpServletRequest req)
public void handleException(ChannelContext channelContext, java.lang.Exception e)
channelContext
- com.ibm.btt.clientserver.ChannelContexte
- java.lang.Exceptionpublic void processException(ChannelContext channelContext, java.lang.Exception exception)
processException
in interface PresentationHandler
processException
in class DSEPresentationHandler
channelContext
- com.ibm.btt.clientserver.ChannelContexte
- java.lang.Exceptionpublic void processReply(ChannelContext channelContext, java.lang.Object operation)
processReply
in interface PresentationHandler
processReply
in class DSEPresentationHandler
channelContext
- com.ibm.btt.clientserver.ChannelContextoperation
- com.ibm.btt.base.ServerOperationprotected javax.servlet.http.HttpServletRequest getOrgRequest(ChannelContext channelContext)
protected javax.servlet.http.HttpServletResponse getOrgResponse(ChannelContext channelContext)
|
IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |