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 addSecurityElement(java.lang.Class<? extends Servlet> servletClass, ServletSecurityElement securityElement)
           
 void addServlet(ServletConfigImpl config)
           
 void addServlet(ServletConfigImpl config, boolean merge)
          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, ServletConfigImpl config, ServletInvocation invocation)
          Creates the servlet chain for the servlet.
 void destroy()
           
 ServletSecurityElement getSecurityElement(java.lang.Class<? extends Servlet> servletClass)
           
 ServletConfigImpl getServlet(java.lang.String servletName)
          Returns ServletConfigImpl to the servlet manager.
 java.util.HashMap<java.lang.String,ServletConfigImpl> getServlets()
           
 void init()
          Initialize servlets that need starting at server start.
 boolean isFacesServletConfigured()
           
 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.


isFacesServletConfigured

public boolean isFacesServletConfigured()

addServlet

public void addServlet(ServletConfigImpl config)
                throws ServletException
Throws:
ServletException

addServlet

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

Throws:
ServletException

addSecurityElement

public void addSecurityElement(java.lang.Class<? extends Servlet> servletClass,
                               ServletSecurityElement securityElement)

getSecurityElement

public ServletSecurityElement getSecurityElement(java.lang.Class<? extends Servlet> servletClass)

getServlet

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


getServlets

public java.util.HashMap<java.lang.String,ServletConfigImpl> getServlets()

init

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

Throws:
ServletException

createServletChain

public FilterChain createServletChain(java.lang.String servletName,
                                      ServletConfigImpl config,
                                      ServletInvocation invocation)
                               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()