Class sun.server.http.Dispatcher
All Packages Class Hierarchy This Package Previous Next Index
Class sun.server.http.Dispatcher
java.lang.Object
|
+----java.servlet.Servlet
|
+----sun.server.http.Dispatcher
- public class Dispatcher
- extends Servlet
- implements Runnable
This Servlet manages the servlets which are downloaded from the
network. It forks a seperate thread in a new thread group to call
the servlet's initialize(), serviceRequest() and destroy() methods.
-
Dispatcher(String, String)
-
-
destroy()
- Destroys the servlet and cleans up whatever resources are being
held.
-
init()
- Initializes the servlet.
-
run()
-
-
service(ServletRequest, ServletResponse)
- serviceRequest
Dispatcher
public Dispatcher(String code,
String codebase) throws Exception
- Throws: Exception
- exception
init
public void init()
- Initializes the servlet.
- Overrides:
- init in class Servlet
service
public void service(ServletRequest req,
ServletResponse res) throws Exception
- serviceRequest
- Throws: Exception
- throws Exception
- Overrides:
- service in class Servlet
destroy
public void destroy()
- Destroys the servlet and cleans up whatever resources are being
held.
- Overrides:
- destroy in class Servlet
run
public void run()
All Packages Class Hierarchy This Package Previous Next Index