com.ibm.dse.cs.xml
Class XmlEstablishSessionServlet
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.xml.XmlEstablishSessionServlet
- public class XmlEstablishSessionServlet
- extends CSEstablishSessionServlet
The XmlEstablishSessionServlet extends CSEstablishSessionServlet servlet class
This servlet defines the front door for all devices supporting the HTTP protocol and use XML messages
Must 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 e)
Convenience method to ensure that a response is returned to the client for the case
where no presentation handler exists or because the server is not initialized |
void |
parseRequestData(ChannelContext channelContext)
Read the contents of the HttpServletRequest
|
protected void |
updateChannelHandler(ChannelHandler ch,
java.lang.String key,
java.lang.String value)
Process the processor tag for the XML Channel Handler in the server dse.ini
Instatiate the processor. |
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,
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 |
XmlEstablishSessionServlet
public XmlEstablishSessionServlet()
- XmlEstablishSessionServlet constructor.
handleServerResponse
protected void handleServerResponse(ChannelContext channelContext,
java.lang.Exception e)
throws java.lang.Exception
- Convenience method to ensure that a response is returned to the client for the case
where no presentation handler exists or because the server is not initialized
- Overrides:
- handleServerResponse in class CSReqServlet
- Parameters:
channelContext
- com.ibm.dse.clientserver.ChannelContextjava.lang.Exception
- - Throws:
- java.lang.DSECSServerNotStartedException -
parseRequestData
public void parseRequestData(ChannelContext channelContext)
throws java.lang.Exception
- Read the contents of the HttpServletRequest
Use the request reader and create a buffer of the contents and pass the string of to the processor to be processed
- Overrides:
- parseRequestData in class CSReqServlet
- Parameters:
channelContext
- com.ibm.dse.clientserver.ChannelContext
updateChannelHandler
protected void updateChannelHandler(ChannelHandler ch,
java.lang.String key,
java.lang.String value)
throws java.lang.Exception
- Process the processor tag for the XML Channel Handler in the server dse.ini
Instatiate the processor.
- Overrides:
- updateChannelHandler in class CSReqServlet
- Parameters:
ch
- com.ibm.dse.clientserver.ChannelHandlerkey
- java.lang.Stringvalue
- java.lang.String