Adding a new ImageMagickImageProcessor class to replace
[mir.git] / source / mir / servlet / ServletModuleDispatch.java
index 5661acf..5fd290e 100755 (executable)
@@ -42,7 +42,7 @@ import mir.log.LoggerWrapper;
  * Dispatcher, calls the method passed to ServletModule Class, through the "do"
  * Parameter (via POST or GET)
  *
- * @version $Id: ServletModuleDispatch.java,v 1.15.2.2 2005/03/26 11:26:25 zapata Exp $
+ * @version $Id: ServletModuleDispatch.java,v 1.15.2.3 2005/07/27 11:46:14 grok Exp $
  *
  * @author rk
  */
@@ -70,6 +70,8 @@ public final class ServletModuleDispatch {
 
   public static void dispatch(ServletModule aServletModule, HttpServletRequest aRequest,
        HttpServletResponse aResponse) throws ServletModuleExc, ServletModuleFailure {
+    // look for requested method's name in the "do" http request param, 
+    // if not present, use default action 
     String doParam = aRequest.getParameter("do");
     logger.debug("ServletModuleDispatch: " + aServletModule.toString() + " with method " + doParam);
 
@@ -80,6 +82,7 @@ public final class ServletModuleDispatch {
         throw new ServletModuleExc("no parameter do supplied!");
     }
 
+    // ok, we have the method's name, now call it
     try {
       Method method = aServletModule.getClass().getMethod(doParam,SIGNATURE);
       if (method != null) {