gnu.beanfactory.servlet
Class Dispatcher

java.lang.Object
  |
  +--javax.servlet.GenericServlet
        |
        +--javax.servlet.http.HttpServlet
              |
              +--gnu.beanfactory.servlet.Dispatcher
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class Dispatcher
extends javax.servlet.http.HttpServlet

Dispatcher is the "controller" of the MVC subsystem.

See Also:
Serialized Form

Constructor Summary
Dispatcher()
           
 
Method Summary
static void dispatch(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.http.HttpSession session, javax.servlet.ServletContext servletContext)
          This method will attach the request, response, session and application contexts to the currently executing thread and proceed to process any form input.
 void init(javax.servlet.ServletConfig cfg)
           
 void service(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Allows Dispatcher to be installed as a servlet to which all form submissions are made.
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Dispatcher

public Dispatcher()
Method Detail

init

public void init(javax.servlet.ServletConfig cfg)
          throws javax.servlet.ServletException
Overrides:
init in class javax.servlet.GenericServlet

dispatch

public static void dispatch(javax.servlet.http.HttpServletRequest request,
                            javax.servlet.http.HttpServletResponse response,
                            javax.servlet.http.HttpSession session,
                            javax.servlet.ServletContext servletContext)
                     throws javax.servlet.ServletException
This method will attach the request, response, session and application contexts to the currently executing thread and proceed to process any form input. Although it can be safely invoked more than once per request, subsequent invocations will do nothing.

service

public void service(javax.servlet.http.HttpServletRequest request,
                    javax.servlet.http.HttpServletResponse response)
             throws javax.servlet.ServletException
Allows Dispatcher to be installed as a servlet to which all form submissions are made.
Overrides:
service in class javax.servlet.http.HttpServlet