lcanals.tc.web.event
Class AbstractEventHandler

java.lang.Object
  |
  +--lcanals.tc.web.event.AbstractEventHandler
All Implemented Interfaces:
EventHandler
Direct Known Subclasses:
ErrorEvent, NewPlanEvent, NewTaskEvent, ShowPlanEvent, UpdateTaskEvent

public abstract class AbstractEventHandler
extends java.lang.Object
implements EventHandler

Base class for event handlers. Reads the URLs from URL.properties file with the next appear:
NAME=a/relative/url

URL.properties file must be placed into WEB-INF/classes directory.


Fields inherited from interface lcanals.tc.web.event.EventHandler
DEFAULT_EVENT, ERROR_EVENT
 
Constructor Summary
AbstractEventHandler()
           
 
Method Summary
protected  void dispatch(javax.servlet.ServletContext context, java.lang.String urlName, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Dispatch to the given NAME
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface lcanals.tc.web.event.EventHandler
forward, process
 

Constructor Detail

AbstractEventHandler

public AbstractEventHandler()
Method Detail

dispatch

protected void dispatch(javax.servlet.ServletContext context,
                        java.lang.String urlName,
                        javax.servlet.http.HttpServletRequest request,
                        javax.servlet.http.HttpServletResponse response)
                 throws EventHandlerException,
                        javax.servlet.ServletException,
                        java.io.IOException
Dispatch to the given NAME
Parameters:
urlName - internal name of the URL, given in the URL.properties file.
Throws:
EventHandlerError - if the given name doesn't match with any name in the URL.properties file.


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