|
IBM Branch 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.DSERequestHandler
This class implements RequestHandler interface.
This is the abstract implementation to be used by all channel specific request handlers
Field Summary | |
---|---|
protected java.lang.String |
errorCode
|
protected static java.util.ResourceBundle |
javaClientException
|
protected static java.util.ResourceBundle |
javaClientTrace
Trace File for NLS |
static java.lang.String |
USING_WORKAREA
The flag which indicate that using WorkArea or not. |
Constructor Summary | |
---|---|
DSERequestHandler()
DSERequestHandler constructor |
Method Summary | |
---|---|
protected void |
checkExecutionPermission(java.lang.String sessionId,
java.lang.String invokerID,
ChannelContext channelContext)
Checks if the user associated to the session sessId can execute the operation opName. |
protected java.lang.String |
executeRequest(ChannelContext channelContext)
Extend this method to perform the actual operation or process |
protected void |
executeSession(ChannelContext channelContext)
Extend this method to perform any required application session processing |
protected PresentationHandler |
getPresentationHandler(ChannelContext channelContext)
Defalt implementation to get the presentation handler from the registry. |
protected void |
handleException(ChannelContext channelContext,
java.lang.Exception ex)
Handle the exceptions raised by the request handler Default implementation attempts to invoke the presentation handler to process the reply |
protected void |
handleException(java.lang.Exception ex)
Handle the exceptions raised by the request handler Log the exception to the server trace console if enabled |
boolean |
isWorkAreaUsed()
Session propagation is configured on the system configuration file (e.g. dse.ini) to indicate using WorkArea or not. |
protected void |
preProcessRequest(ChannelContext channelContext)
Extend this method to perform any initial processing required by the request handler |
void |
process(ChannelContext aChannelCtx)
This method will control all the logic of the requestHandler |
void |
processRequest(ChannelContext channelContext)
Process the request for a specific channel This is the default flow to process a request. |
void |
processSessionRequest(ChannelContext channelContext)
Process the request to establish a session for a specific channel This is the default flow to process a session request. |
protected boolean |
usingCookies(ChannelContext channelContext)
Convenience method to determine if cookies are being used to manage the client server session for the specified device type By default using cookies is false |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.lang.String errorCode
public static final java.lang.String USING_WORKAREA
protected static java.util.ResourceBundle javaClientTrace
protected static java.util.ResourceBundle javaClientException
Constructor Detail |
public DSERequestHandler()
Method Detail |
protected java.lang.String executeRequest(ChannelContext channelContext) throws java.lang.Exception
channelContext
- com.ibm.btt.clientserver.ChannelContext
java.lang.Exception
protected void executeSession(ChannelContext channelContext) throws java.lang.Exception
channelContext
- com.ibm.btt.clientserver.ChannelContext
java.lang.Exception
protected PresentationHandler getPresentationHandler(ChannelContext channelContext) throws DSENoRegisteredPresentationHandlerException
channelContext
- com.ibm.btt.clientserver.ChannelContext
DSENoRegisteredPresentationHandlerException
protected void handleException(ChannelContext channelContext, java.lang.Exception ex)
channelContext
- com.ibm.btt.clientserver.ChannelContextex
- java.lang.Exceptionprotected void handleException(java.lang.Exception ex)
ex
- java.lang.Exceptionprotected void preProcessRequest(ChannelContext channelContext) throws DSEException
channelContext
- com.ibm.btt.clientserver.ChannelContext
DSEException
public void process(ChannelContext aChannelCtx) throws java.lang.Exception
aChannelCtx
- com.ibm.btt.clientserver.ChannelContext
java.lang.Exception
public void processRequest(ChannelContext channelContext)
processRequest
in interface RequestHandler
channelContext
- com.ibm.btt.clientserver.ChannelContextpublic void processSessionRequest(ChannelContext channelContext)
processSessionRequest
in interface RequestHandler
channelContext
- com.ibm.btt.clientserver.ChannelContextprotected boolean usingCookies(ChannelContext channelContext)
channelContext
- com.ibm.btt.clientserver.ChannelContext
protected void checkExecutionPermission(java.lang.String sessionId, java.lang.String invokerID, ChannelContext channelContext) throws ACLException
sessionId
- invokerID
- channelContext
-
ACLException
public boolean isWorkAreaUsed()
|
IBM Branch Transformation Toolkit Javadoc | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |