com.caucho.server.dispatch
Class ServletManager

java.lang.Object
  extended by com.caucho.server.dispatch.ServletManager

public class ServletManager
extends java.lang.Object

Manages the servlets.


Constructor Summary
ServletManager()
           
 
Method Summary
 void addServlet(ServletConfigImpl config)
          Adds a servlet to the servlet manager.
 Servlet createServlet(java.lang.String servletName)
          Instantiates a servlet given its configuration.
 FilterChain createServletChain(java.lang.String servletName)
          Creates the servlet chain for the servlet.
 void destroy()
           
 ServletConfigImpl getServlet(java.lang.String servletName)
          Adds a servlet to the servlet manager.
 void init()
          Initialize servlets that need starting at server start.
 void setLazyValidate(boolean isLazy)
          Sets true if validation is lazy.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServletManager

public ServletManager()
Method Detail

setLazyValidate

public void setLazyValidate(boolean isLazy)
Sets true if validation is lazy.


addServlet

public void addServlet(ServletConfigImpl config)
                throws ServletException
Adds a servlet to the servlet manager.

Throws:
ServletException

getServlet

public ServletConfigImpl getServlet(java.lang.String servletName)
Adds a servlet to the servlet manager.


init

public void init()
          throws ServletException
Initialize servlets that need starting at server start.

Throws:
ServletException

createServletChain

public FilterChain createServletChain(java.lang.String servletName)
                               throws ServletException
Creates the servlet chain for the servlet.

Throws:
ServletException

createServlet

public Servlet createServlet(java.lang.String servletName)
                      throws ServletException
Instantiates a servlet given its configuration.

Parameters:
servletName - the servlet
Returns:
the initialized servlet.
Throws:
ServletException

destroy

public void destroy()