net.sf.colle.web
Class Controller

java.lang.Object
  extended bynet.sf.colle.web.Controller
Direct Known Subclasses:
AuthedController, UnauthenticatedController

public abstract class Controller
extends Object

Controls the response to a request. Sub-systems will define Controllers for each unique task they perform. A Controller is stateless or at least responsible for synchronizing access to it's own state. A Controller is identified by it's package and class name. For example, Controller net.sf.colle.web.ControlServlet.WelcomeController will handle requests to "www.servername.net/{domain}/net/sf/colle/web/ControlServlet/WelcomeController" (this may be shortened by the net.sf.colle.web.controllerPath property). Controllers may over-ride the defaultAction method which by default returns error 404 to the user. Created: 20 Dec 2001

Version:
$Revision: 1.1 $, $Date: 2003/06/26 18:40:18 $
Author:
Dwayne Schultz

Constructor Summary
Controller()
           
 
Method Summary
 void defaultAction(Context pxContext)
          Respond with the default action to a request.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Controller

public Controller()
Method Detail

defaultAction

public void defaultAction(Context pxContext)
                   throws ServletException,
                          IOException
Respond with the default action to a request.

Throws:
ServletException
IOException