public abstract class AbstractServletContainerInitializer extends Object
Provides common functionality for ServletContainerInitializer
implementatios.
Constructor and Description |
---|
AbstractServletContainerInitializer() |
Modifier and Type | Method and Description |
---|---|
protected ServletRegistration |
getServletRegistration(Class<? extends javax.servlet.Servlet> servletClass,
javax.servlet.ServletContext context)
Returns the servlet registration for given
Servlet class, which has at least one mapping registered. |
protected boolean |
hasFilterMapping(Class<? extends javax.servlet.Filter> filterClass,
javax.servlet.ServletContext context)
Detects if given
Filter class has been already registered. |
protected boolean hasFilterMapping(Class<? extends javax.servlet.Filter> filterClass, javax.servlet.ServletContext context)
Filter
class has been already registered.filterClass
- Filter
implementation classcontext
- to search for registrationFilter
class has been already registered.protected ServletRegistration getServletRegistration(Class<? extends javax.servlet.Servlet> servletClass, javax.servlet.ServletContext context)
Returns the servlet registration for given Servlet
class, which has at least one mapping registered.
Returns null otherwise.
servletClass
- Servlet
implementation classcontext
- to search for registrationServlet
class, which has at least one mapping registered, null
otherwise.Copyright © 2015 JBoss by Red Hat. All Rights Reserved.