org.cofax.cds
Class CDSServlet


java.lang.Object

  |

  +--javax.servlet.GenericServlet

        |

        +--javax.servlet.http.HttpServlet

              |

              +--org.cofax.cds.CDSServlet

All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class CDSServlet
extends javax.servlet.http.HttpServlet

The Cofax project's web serving program.

CDSServlet is a small "driver program" that uses various Cofax modules to serve an interactive web site. CDSServlet dynamically loads modules listed in the configuration to serve as data store connectors, template processing engines, personalization engines, and delivery engines.

Author:
Rajiv Pant, Karl Martino, Sam Cohen, Hung Dao
See Also:
Serialized Form

Constructor Summary
CDSServlet()
           
 
Method Summary
 void destroy()
          Performs servlet cleanup such as closing down the database pool.
 void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          Responds to a url requested from the server.
 void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Calls doGet for a post
 java.lang.String getServletInfo()
          Returns where to find more information about cofax.
 void init(javax.servlet.ServletConfig config)
          Runs at servlet startup.
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doOptions, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CDSServlet


public CDSServlet()
Method Detail

getServletInfo


public java.lang.String getServletInfo()
Returns where to find more information about cofax.
Overrides:
getServletInfo in class javax.servlet.GenericServlet

init


public final void init(javax.servlet.ServletConfig config)

                throws javax.servlet.ServletException
Runs at servlet startup. It initializes variables and the database pool. It is ran by the servlet container itself.
Overrides:
init in class javax.servlet.GenericServlet

doPost


public final void doPost(javax.servlet.http.HttpServletRequest request,

                         javax.servlet.http.HttpServletResponse response)

                  throws javax.servlet.ServletException,

                         java.io.IOException
Calls doGet for a post
Overrides:
doPost in class javax.servlet.http.HttpServlet

doGet


public final void doGet(javax.servlet.http.HttpServletRequest req,

                        javax.servlet.http.HttpServletResponse res)

                 throws javax.servlet.ServletException,

                        java.io.IOException
Responds to a url requested from the server. It gathers information from the request, determines if there is a cached object to serve the request, if so, send that back as the response. If not, put together a new response. Putting together a new response involves picking a template, parsing that template with the applicable data, then processing the template's own requests for additional data. Finally, return the page generated and determine if the page should be cached for further use.
Overrides:
doGet in class javax.servlet.http.HttpServlet

destroy


public void destroy()
Performs servlet cleanup such as closing down the database pool.
Overrides:
destroy in class javax.servlet.GenericServlet


Copyright 2001 KnightRidder.com. All Rights Reserved.