|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.dse.clientserver.DSERequestHandler | +--com.ibm.dse.cs.html.HtmlRequestHandler
Handle requests that are made from html clients. The DSE.INI file for the server specifies this class name as the handler for html requests. One instance of it is created and held by the HandlerRegistry for use by all html clients.
Constructor Summary | |
HtmlRequestHandler()
HtmlRequestHandler constructor comment. |
Method Summary | |
protected void |
addConseqInfoToSessionCtx(java.lang.String sessionId,
KeyedCollection kcReqData)
Adds to the session context the information needed to manage the processor's consequentiality. |
void |
addFieldTo(Context ctx,
java.lang.String name,
java.lang.Object value)
This method adds framework related fields to a context. |
protected void |
addRequiredDataToOperationCtx(Context opCtx,
KeyedCollection kcReqData)
The session operation context requires some data to be added to it. |
protected void |
addRequiredDataToSessionCtx(java.lang.String sessionId,
javax.servlet.http.HttpServletRequest req)
The session context requires some data to be added to it. |
protected boolean |
areTransitionCtxErrors(Context trCtx)
Returns true if any of the DataElements associated to this context has validation errors. |
void |
endRequest(ChannelContext channelContext)
Perform any post processing of the request if required. |
void |
endSessionRequest(ServerOperation anOperation)
Perform any post processing of the request if required. |
ServerOperation |
executeRequest(ChannelContext channelContext)
When a server is set up with the cookies flag in DSE.INI set to false, then a DSEChannelSession object is used rather than an HttpSession. |
ServerOperation |
executeSessionRequest(ChannelContext channelContext)
When a session is established, we need to call an operation which sets the context to hold data that is saved in the session. |
protected java.lang.String |
getSessionId(ChannelContext aChannelContext)
Obtain the session id from the channel context. |
void |
preProcessRequest(ChannelContext channelContext)
Perform back and double click processing to assure that this is considered a valid request before proceeding. |
void |
processRequest(ChannelContext channelContext)
Process the request originated from a request that already has a session |
void |
processSessionRequest(ChannelContext channelContext)
This method is similar to processRequest, only back and double click validation are not performed as a new session is being established. |
Methods inherited from class com.ibm.dse.clientserver.DSERequestHandler |
endRequest,
executeSession,
getPresentationHandler,
handleException,
handleException,
usingCookies |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public HtmlRequestHandler()
Method Detail |
protected void addConseqInfoToSessionCtx(java.lang.String sessionId, KeyedCollection kcReqData)
sessionId
- StringkcReqData
- com.ibm.dse.base.KeyedCollectionpublic void addFieldTo(Context ctx, java.lang.String name, java.lang.Object value) throws java.lang.Exception
protected void addRequiredDataToOperationCtx(Context opCtx, KeyedCollection kcReqData)
opCtx
- com.ibm.dse.base.ContextkcReqData
- com.ibm.dse.base.KeyedCollectionprotected void addRequiredDataToSessionCtx(java.lang.String sessionId, javax.servlet.http.HttpServletRequest req)
sessionId
- java.lang.Stringreq
- HttpServletRequestprotected boolean areTransitionCtxErrors(Context trCtx)
trCtx
- com.ibm.dse.base.Contextpublic void endRequest(ChannelContext channelContext)
channelContext
- com.ibm.dse.clientserver.ChannelContextpublic void endSessionRequest(ServerOperation anOperation)
anOperation
- com.ibm.dse.base.ServerOperationpublic ServerOperation executeRequest(ChannelContext channelContext) throws java.lang.Exception
channelContext
- com.ibm.dse.clientserver.ChannelContextpublic ServerOperation executeSessionRequest(ChannelContext channelContext) throws java.lang.Exception
channelContext
- com.ibm.dse.clientserver.ChannelContextprotected java.lang.String getSessionId(ChannelContext aChannelContext)
aChannelContext
- com.ibm.dse.clientserver.ChannelContextpublic void preProcessRequest(ChannelContext channelContext) throws DSEException
channelContext
- com.ibm.dse.clientserver.ChannelContextpublic void processRequest(ChannelContext channelContext)
channelContext
- com.ibm.dse.clientserver.ChannelContextpublic void processSessionRequest(ChannelContext channelContext)
channelContext
- com.ibm.dse.clientserver.ChannelContext
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |