com.ibm.dse.cs.xml
Class XmlRequestServlet

java.lang.Object
  |
  +--javax.servlet.GenericServlet
        |
        +--javax.servlet.http.HttpServlet
              |
              +--com.ibm.dse.cs.servlet.CSReqServlet
                    |
                    +--com.ibm.dse.cs.xml.XmlRequestServlet

public class XmlRequestServlet
extends CSReqServlet

The XmlRequestServlet extends the CSReqServlet servlet class

This servlet requires specific processing for XML messages

See Also:
Serialized Form

Fields inherited from class com.ibm.dse.cs.servlet.CSReqServlet
sessionAffinity, sessionPersistence
 
Constructor Summary
XmlRequestServlet()
          XmlRequestServlet constructor.
 
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)
          Special processing required for the channel specific parameters in the server configuration file (dse.ini) Instantiate the processor
 
Methods inherited from class com.ibm.dse.cs.servlet.CSReqServlet
createChannelContext, createChannelHandler, createSessionEntry, getDeviceType, getPresentationHandler, getRequestHandler, getSessionAffinity, getSessionPersistence, handleException, handleException, parseRequestHeader, preProcessRequest, removeSessionEntry, retrieve, retrieveWithoutSessionAffinity, retrieveWithSessionAffinity, runInSession, service, 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
 

Constructor Detail

XmlRequestServlet

public XmlRequestServlet()
XmlRequestServlet constructor.
Method Detail

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.ChannelContext
java.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
Special processing required for the channel specific parameters in the server configuration file (dse.ini) Instantiate the processor
Overrides:
updateChannelHandler in class CSReqServlet
Parameters:
ch - com.ibm.dse.clientserver.ChannelHandler
key - java.lang.String
value - java.lang.String