All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class sun.server.Dispatcher

java.lang.Object
   |
   +----sun.server.Dispatcher

public class Dispatcher
extends Object
implements Servlet, 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)
Creates a new Dispatcher

Method Index

 o destroy()
Destroys dispatcher
 o getServletConfig()
Gets servlet configuration
 o getServletInfo()
Gets ServletInfo
 o init(ServletConfig)
Initializes dispatcher
 o run()
Runs the dispatcher
 o service(ServletRequest, ServletResponse)
serviceRequest

Constructors

 o Dispatcher
  public Dispatcher(String code,
                    String codebase) throws Exception
Creates a new Dispatcher

Throws: Exception
exception

Methods

 o getServletInfo
  public String getServletInfo()
Gets ServletInfo

Returns:
servlet info
 o init
  public void init(ServletConfig conf) throws ServletException
Initializes dispatcher

Parameters:
conf - servlet configuration
Throws: ServletException
servlet exception
 o getServletConfig
  public ServletConfig getServletConfig()
Gets servlet configuration

Returns:
servlet configuration
 o service
  public void service(ServletRequest req,
                      ServletResponse res) throws ServletException, IOException
serviceRequest

Throws: ServletException
on error
Throws: IOException
on I/O error
 o destroy
  public void destroy()
Destroys dispatcher

 o run
  public void run()
Runs the dispatcher


All Packages  Class Hierarchy  This Package  Previous  Next  Index