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.

Constructor Index

 o Dispatcher(String, String)

Method Index

 o destroy()
Destroys the servlet and cleans up whatever resources are being held.
 o init()
Initializes the servlet.
 o run()
 o service(ServletRequest, ServletResponse)
serviceRequest

Constructors

 o Dispatcher
  public Dispatcher(String code,
                    String codebase) throws Exception
Throws: Exception
exception

Methods

 o init
  public void init()
Initializes the servlet.
Overrides:
init in class Servlet
 o service
  public void service(ServletRequest req,
                      ServletResponse res) throws Exception
serviceRequest
Throws: Exception
throws Exception
Overrides:
service in class Servlet
 o destroy
  public void destroy()
Destroys the servlet and cleans up whatever resources are being held.
Overrides:
destroy in class Servlet
 o run
  public void run()

All Packages  Class Hierarchy  This Package  Previous  Next  Index