com.ibm.dse.cs.servlet
Class CSAssignServiceIdAndServerTIDProtocolServlet
java.lang.Object
|
+--javax.servlet.GenericServlet
|
+--javax.servlet.http.HttpServlet
|
+--com.ibm.dse.cs.servlet.CSReqServlet
|
+--com.ibm.dse.cs.servlet.CSEstablishSessionServlet
|
+--com.ibm.dse.cs.servlet.CSAssignServiceIdAndServerTIDProtocolServlet
- public class CSAssignServiceIdAndServerTIDProtocolServlet
- extends CSEstablishSessionServlet
The CSAssignServiceIdAndServerTIDProtocolServlet extends CSEstablishSessionServlet class
This servlet defines the front door for all java client devices supporting the HTTP protocol and should
be invoked to establish the session between the client and the server
- See Also:
- Serialized Form
Method Summary |
protected void |
handleServerResponse(ChannelContext channelContext,
java.lang.Exception ex)
Convenience method to ensure that a response is returned to the java client for the case
where no presentation handler exists because the server is not initialized |
void |
parseRequestData(ChannelContext channelContext)
Parse the input stream from the the HttpServletRequest
|
void |
preProcessRequest(ChannelContext channelContext)
Perform any session management/control required at the device level. |
Methods inherited from class com.ibm.dse.cs.servlet.CSReqServlet |
createChannelContext,
createChannelHandler,
createSessionEntry,
getDeviceType,
getPresentationHandler,
getRequestHandler,
getSessionAffinity,
getSessionPersistence,
handleException,
handleException,
parseRequestHeader,
removeSessionEntry,
retrieve,
retrieveWithoutSessionAffinity,
retrieveWithSessionAffinity,
runInSession,
setSessionAffinity,
setSessionAffinity,
setSessionPersistence,
setSessionPersistence,
store,
updateChannelHandler,
usingCookies |
Methods inherited from class javax.servlet.http.HttpServlet |
doDelete,
doGet,
doOptions,
doPost,
doPut,
doTrace,
getLastModified,
service |
Methods inherited from class javax.servlet.GenericServlet |
destroy,
getInitParameter,
getInitParameterNames,
getServletConfig,
getServletContext,
getServletInfo,
getServletName,
init,
init,
log,
log |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
CSAssignServiceIdAndServerTIDProtocolServlet
public CSAssignServiceIdAndServerTIDProtocolServlet()
- CSEstablishSessionProtocolServlet constructor
handleServerResponse
protected void handleServerResponse(ChannelContext channelContext,
java.lang.Exception ex)
throws java.lang.Exception
- Convenience method to ensure that a response is returned to the java client for the case
where no presentation handler exists because the server is not initialized
- Overrides:
- handleServerResponse in class CSReqServlet
- Parameters:
channelContext
- com.ibm.dse.clientserver.ChannelContextex
- java.lang.Exception- Throws:
- java.lang.Exception -
parseRequestData
public void parseRequestData(ChannelContext channelContext)
throws java.lang.Exception
- Parse the input stream from the the HttpServletRequest
Parse to the request data into the KeyedCollection. Add the kColl to the ChannelContext request data
If the channel is using cookies to support session id, initially the session id and server id are passed in the request
- Overrides:
- parseRequestData in class CSReqServlet
- Parameters:
channelContext
- com.ibm.dse.clientserver.ChannelContext
preProcessRequest
public void preProcessRequest(ChannelContext channelContext)
throws DSECSSessionNotEstablishedException
- Perform any session management/control required at the device level.
Insert the channel session into the ChannelContext.
Additional requirements for the java client
Create an new instance of the session if:
- request sessionid and serverid are valid (-1 = invalid)
- request serverid is not the same as the current server serverid
- Overrides:
- preProcessRequest in class CSEstablishSessionServlet
- Parameters:
channelContext
- com.ibm.dse.clientserver.ChannelContext- Throws:
- DSECSSessionNotEstablishedException -