public class ServletManager
extends java.lang.Object
Constructor and Description |
---|
ServletManager() |
Modifier and Type | Method and Description |
---|---|
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.
|
void |
initializeJspServlets() |
boolean |
isFacesServletConfigured() |
void |
setLazyValidate(boolean isLazy)
Sets true if validation is lazy.
|
public void setLazyValidate(boolean isLazy)
public boolean isFacesServletConfigured()
public void addServlet(ServletConfigImpl config) throws ServletException
ServletException
public void addServlet(ServletConfigImpl config, boolean merge) throws ServletException
ServletException
public void addSecurityElement(java.lang.Class<? extends Servlet> servletClass, ServletSecurityElement securityElement)
public ServletSecurityElement getSecurityElement(java.lang.Class<? extends Servlet> servletClass)
public ServletConfigImpl getServlet(java.lang.String servletName)
public java.util.HashMap<java.lang.String,ServletConfigImpl> getServlets()
public void initializeJspServlets() throws ServletException
ServletException
@PostConstruct public void init() throws ServletException
ServletException
public FilterChain createServletChain(java.lang.String servletName, ServletConfigImpl config, ServletInvocation invocation) throws ServletException
ServletException
public Servlet createServlet(java.lang.String servletName) throws ServletException
servletName
- the servletServletException
public void destroy()