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.
-
Dispatcher(String, String)
- Creates a new Dispatcher
-
destroy()
- Destroys dispatcher
-
getServletConfig()
- Gets servlet configuration
-
getServletInfo()
- Gets ServletInfo
-
init(ServletConfig)
- Initializes dispatcher
-
run()
- Runs the dispatcher
-
service(ServletRequest, ServletResponse)
- serviceRequest
Dispatcher
public Dispatcher(String code,
String codebase) throws Exception
- Creates a new Dispatcher
- Throws: Exception
- exception
getServletInfo
public String getServletInfo()
- Gets ServletInfo
- Returns:
- servlet info
init
public void init(ServletConfig conf) throws ServletException
- Initializes dispatcher
- Parameters:
- conf - servlet configuration
- Throws: ServletException
- servlet exception
getServletConfig
public ServletConfig getServletConfig()
- Gets servlet configuration
- Returns:
- servlet configuration
service
public void service(ServletRequest req,
ServletResponse res) throws ServletException, IOException
- serviceRequest
- Throws: ServletException
- on error
- Throws: IOException
- on I/O error
destroy
public void destroy()
- Destroys dispatcher
run
public void run()
- Runs the dispatcher
All Packages Class Hierarchy This Package Previous Next Index