IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

com.ibm.btt.cs.servlet
Class CSReqServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by com.ibm.btt.cs.servlet.CSReqServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
Direct Known Subclasses:
AjaxRequestServlet, CSEstablishSessionServlet, CSRemoteServlet, HTMLReqServlet

public class CSReqServlet
extends javax.servlet.http.HttpServlet

This class implements HTTP specific behavior for saving the information associated with a session into a database using the HttpSession class supplied by WebSphere Application Server. To use the data persistence you must set the value of the tag "channelHandlers.html.requestHandler" of the btt.xml file to:

 com.ibm.btt.cs.html.ext.PersistHtmlRequestHandler
 

It is also possible to specify whether session affinity exists using the initialization.sessionAffinity tag in the btt.xml file. By default, session affinity is assumed. To specify that there is no session affinity, set the tag's value to "no" (or "false", or "0", or "disable" ). To use this feature, you must activate the persistence of the session in the WebSphere Application Server. For more information, see the WebSphere documentation.

See Also:
Serialized Form

Constructor Summary
CSReqServlet()
           
 
Method Summary
protected  ChannelDriver getChannelDriver()
          This method is used for subclass to override to provide the customized channel driver object
protected  ChannelRequest getChannelRequest(javax.servlet.http.HttpServletRequest req)
          This method is used for subclass to override to provide the customized request object
protected  ChannelResponse getChannelResponse(javax.servlet.http.HttpServletResponse res)
          This method is used for subclass to override to provide the customized response object
protected  void service(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Defines the process flow to execute a request.
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, 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

CSReqServlet

public CSReqServlet()
Method Detail

service

protected void service(javax.servlet.http.HttpServletRequest req,
                       javax.servlet.http.HttpServletResponse res)
                throws javax.servlet.ServletException,
                       java.io.IOException
Defines the process flow to execute a request. This method is the entry point for each request coming to this servlet. note This method is valid for requests sent using the GET method and requests sent using the POST method.

Overrides:
service in class javax.servlet.http.HttpServlet
Parameters:
req - HttpServletRequest
res - HttpServletResponse
Throws:
ServletException
java.io.IOException
javax.servlet.ServletException

getChannelRequest

protected ChannelRequest getChannelRequest(javax.servlet.http.HttpServletRequest req)
This method is used for subclass to override to provide the customized request object

Parameters:
req - the request
Returns:
the request wrapper

getChannelResponse

protected ChannelResponse getChannelResponse(javax.servlet.http.HttpServletResponse res)
This method is used for subclass to override to provide the customized response object

Parameters:
res - the response
Returns:
the response wrapper

getChannelDriver

protected ChannelDriver getChannelDriver()
This method is used for subclass to override to provide the customized channel driver object

Returns:
the customized channel driver object

IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2011