All Packages Class Hierarchy This Package Previous Next Index
Class org.webmacro.servlet.Reactor
java.lang.Object
|
+----javax.servlet.GenericServlet
|
+----javax.servlet.http.HttpServlet
|
+----org.webmacro.servlet.WMServlet
|
+----org.webmacro.servlet.Reactor
- public final class Reactor
- extends WMServlet
This is the core servlet class that you should register as the
servlet to run in your servlet runner. You must register this
class as the code to execute against each script name you intend
to support. When a request comes in, the Reactor will check the
script name and then locate a handler with the same name and
execute it.
Your job is to write the Handler that the Reactor farms the work
off to. Reactor's job is to set up a comfortable environment for
you to work in, and match requests up with handlers.
This is the servlet which accepts incoming requests and farms them off
- See Also:
- Handler
-
Reactor()
-
-
handle(WebContext)
- Private method to handle the incoming request no matter where
it came from, by selecting the correct handler.
-
start()
- This method is called by WMServlet on start up.
Reactor
public Reactor()
start
public final void start() throws ServletException
- This method is called by WMServlet on start up.
- Throws: ServletException
- if it failed to start
- Overrides:
- start in class WMServlet
handle
public final Template handle(WebContext c) throws HandlerException
- Private method to handle the incoming request no matter where
it came from, by selecting the correct handler. This is the heart
of the selection routine, it drives the whole process.
- Parameters:
- c - is the WebContext built up by GET/POST methods
- Overrides:
- handle in class WMServlet
All Packages Class Hierarchy This Package Previous Next Index