Package lcanals.tc.web

Controllers of the web layer.

See:
          Description

Class Summary
GeneralController Base servlet for controllers.
ManageEstimatorController Controller to generate a estimator control view and take the new parameters to update it.
PersonalPlanController Servlet which gets information from POST and process an event.
 

Package lcanals.tc.web Description

Controllers of the web layer. In this package, there are controller servlets, according to MVC model.
The subpackages are referred to the web layer to specific event handlers for the model and for the views.

General sequence diagram for responsing a request is:

  1. Web Client (the user) sends a request to GeneralController servlet URL, giving as a parameter the name of the event desired for this request.
  2. An instance of GeneralController takes the event object which will process the event and delegates over it the process of the request and the response.
In UML, it looks like

EventHandler objects are taken from a table, to avoid the instantiation of new objects for each new request. For this reason, EventHandlers must be threadsafe, as GeneralController.

EventHandler classes and event names are joined throught a properties file. Here you are a class diagram for this package (it's so simple):

The next attributes will be present in session
Attribute name Events which set the attribute
estimator ShowPlanEvent, estimator/SeeEstimatorEvent
plan ShowPlanEvent



Luis F. Canals. Supported by www.sourceforge.net