IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

com.ibm.btt.cs.ajax
Class AjaxHtmlRequestHandler

java.lang.Object
  extended by com.ibm.btt.clientserver.DSERequestHandler
      extended by com.ibm.btt.cs.html.HtmlRequestHandler
          extended by com.ibm.btt.cs.ajax.AjaxHtmlRequestHandler
All Implemented Interfaces:
RequestHandler
Direct Known Subclasses:
RestRequestHandler

public class AjaxHtmlRequestHandler
extends HtmlRequestHandler


Field Summary
 
Fields inherited from class com.ibm.btt.clientserver.DSERequestHandler
errorCode, javaClientException, javaClientTrace
 
Constructor Summary
AjaxHtmlRequestHandler()
           
 
Method Summary
protected  void chainOperation(BTTServerOperation oper, java.lang.String sessionId, java.lang.String applicationId, java.lang.String processorId, java.lang.String operName)
          Chains the operation or processor context to the right parent.
protected  void commitSessionCtx(ChannelContext channelContext)
          commit session context to CHA server.
 void endRequest(ChannelContext channelContext)
          unchain the processor context and save the loaded processor context
protected  java.lang.Object executeOperationRequest(ChannelContext channelContext)
          Excute operation request
protected  boolean isValidAjaxOpContext(BTTServerOperation oper, KeyedCollection kcReqData, java.lang.String convType)
          Updates dse_errorMessages field in the context with the results of the validation.
 void processNavigation(ChannelContext channelContext)
          Process the request when there is no abnormal navigation.
 void processRequest(ChannelContext channelContext)
          Process the request originated from a request that already has a session
protected  void syncRequestEnd(ChannelContext channelContext)
           
protected  void syncRequestStart(ChannelContext channelContext)
          this method is used to synchronize the html channel and ajax channel to make sure that at one time just one channel request processed.
protected  boolean updateContext(BTTServerOperation oper, KeyedCollection kcReqData, java.lang.String convType)
          Updates dse_errorMessages field in the context with the results of the validation.
 
Methods inherited from class com.ibm.btt.cs.html.HtmlRequestHandler
addConseqInfoToSessionCtx, addConseqInfoToSessionCtx, addErrorInfo, addFieldTo, addRequiredDataToOperationCtx, addRequiredDataToSessionCtx, areTransitionCtxErrors, chainOperation, checkContextExistence, checkForLocale, createErrorMessage, endSessionRequest, executeProcessorRequest, executeRequest, executeSessionRequest, getOrgRequest, getProcessorId, getRVS, getSessionId, indexOfInteger, isFirstRequest, isValidGridData, manageValidationErrors, preProcessRequest, processAbnormalNavigation, processSessionRequest, putProcessorIntoCache, readOperation, resetFlagForRVS, saveProcessor, setLocale, setNextPageId, updateTimestamp
 
Methods inherited from class com.ibm.btt.clientserver.DSERequestHandler
checkExecutionPermission, executeSession, formatOpContext, getPresentationHandler, getRequestValue, getSessionContext, handleException, handleException, isNotNull, process, runInSession, setReplyFmt, tryToFormat, tryToUnformat, unFormatRequest, usingCookies
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AjaxHtmlRequestHandler

public AjaxHtmlRequestHandler()
Method Detail

processNavigation

public void processNavigation(ChannelContext channelContext)
                       throws java.lang.Exception
Process the request when there is no abnormal navigation.

Overrides:
processNavigation in class HtmlRequestHandler
Parameters:
channelContext - com.ibm.btt.clientserver.ChannelContext
Throws:
java.lang.Exception

executeOperationRequest

protected java.lang.Object executeOperationRequest(ChannelContext channelContext)
                                            throws java.lang.Exception
Excute operation request

Overrides:
executeOperationRequest in class HtmlRequestHandler
Parameters:
channelContext - com.ibm.btt.clientserver.ChannelContext
Throws:
java.lang.Exception

updateContext

protected boolean updateContext(BTTServerOperation oper,
                                KeyedCollection kcReqData,
                                java.lang.String convType)
                         throws DSETypeException,
                                DSEObjectNotFoundException,
                                DSEInvalidArgumentException,
                                DSEInvalidRequestException
Updates dse_errorMessages field in the context with the results of the validation. Validation process is using the specified conversion type to convert input data to final objects.

Parameters:
oper -
kcReqData -
convType -
Returns:
Throws:
DSETypeException
DSEObjectNotFoundException
DSEInvalidArgumentException
DSEInvalidRequestException

chainOperation

protected void chainOperation(BTTServerOperation oper,
                              java.lang.String sessionId,
                              java.lang.String applicationId,
                              java.lang.String processorId,
                              java.lang.String operName)
                       throws java.lang.Exception
Chains the operation or processor context to the right parent. If it is an operation and the processorId is not null, so the operation context will be chained to the processor context. Note: if the processor state context existed, the operation context will chain to the processor state context

Parameters:
oper - com.ibm.btt.base.DSEServerOperation
sessionId - java.lang.String
applicationId - java.lang.String
applicationId - java.lang.String
operName - java.lang.String
Throws:
DSEInvalidRequestException - There is no context associated with given sessionId or applicationId
java.lang.Exception

isValidAjaxOpContext

protected boolean isValidAjaxOpContext(BTTServerOperation oper,
                                       KeyedCollection kcReqData,
                                       java.lang.String convType)
                                throws DSETypeException,
                                       DSEObjectNotFoundException,
                                       DSEInvalidArgumentException,
                                       DSEInvalidRequestException
Updates dse_errorMessages field in the context with the results of the validation. Validation process is using the specified conversion type to convert input data to final objects. refer BTTServiceOperation.updateContext() method for details.

Parameters:
oper -
kcReqData -
convType -
Returns:
true if the validat pass or return false
Throws:
DSETypeException
DSEObjectNotFoundException
DSEInvalidArgumentException
DSEInvalidRequestException

endRequest

public void endRequest(ChannelContext channelContext)
unchain the processor context and save the loaded processor context

Overrides:
endRequest in class HtmlRequestHandler
Parameters:
channelContext - com.ibm.btt.clientserver.ChannelContext

syncRequestEnd

protected void syncRequestEnd(ChannelContext channelContext)
                       throws DSEInvalidRequestException,
                              DSEObjectNotFoundException,
                              DSECSSessionNotEstablishedException
Overrides:
syncRequestEnd in class HtmlRequestHandler
Throws:
DSEInvalidRequestException
DSEObjectNotFoundException
DSECSSessionNotEstablishedException

syncRequestStart

protected void syncRequestStart(ChannelContext channelContext)
                         throws DSEInvalidRequestException,
                                DSEObjectNotFoundException,
                                DSECSSessionNotEstablishedException
Description copied from class: HtmlRequestHandler
this method is used to synchronize the html channel and ajax channel to make sure that at one time just one channel request processed.

Overrides:
syncRequestStart in class HtmlRequestHandler
Throws:
DSEInvalidRequestException
DSEObjectNotFoundException
DSECSSessionNotEstablishedException

commitSessionCtx

protected void commitSessionCtx(ChannelContext channelContext)
Description copied from class: HtmlRequestHandler
commit session context to CHA server.

Overrides:
commitSessionCtx in class HtmlRequestHandler

processRequest

public void processRequest(ChannelContext channelContext)
Description copied from class: HtmlRequestHandler
Process the request originated from a request that already has a session

Specified by:
processRequest in interface RequestHandler
Overrides:
processRequest in class HtmlRequestHandler
Parameters:
channelContext - com.ibm.btt.clientserver.ChannelContext

IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2011