| Modifier and Type | Field and Description |
|---|---|
protected java.util.Map<java.lang.String,ServletRegistration> |
WebappContext.servletRegistrations |
| Modifier and Type | Method and Description |
|---|---|
ServletRegistration |
WebappContext.addServlet(java.lang.String servletName,
java.lang.Class<? extends javax.servlet.Servlet> servletClass)
Adds the servlet with the given name and class type to this servlet
context.
|
ServletRegistration |
WebappContext.addServlet(java.lang.String servletName,
javax.servlet.Servlet servlet)
Registers the given servlet instance with this WebappContext
under the given servletName.
|
ServletRegistration |
WebappContext.addServlet(java.lang.String servletName,
java.lang.String className)
Adds the servlet with the given name and class name to this servlet
context.
|
ServletRegistration |
WebappContext.getServletRegistration(java.lang.String name)
Gets the ServletRegistration corresponding to the servlet with the
given servletName.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.String,? extends ServletRegistration> |
WebappContext.getServletRegistrations()
Gets a (possibly empty) Map of the ServletRegistration
objects (keyed by servlet name) corresponding to all servlets
registered with this WebappContext.
|
| Modifier and Type | Method and Description |
|---|---|
int |
ServletRegistration.compareTo(ServletRegistration o) |
protected javax.servlet.Servlet |
WebappContext.createServletInstance(ServletRegistration registration)
Instantiates the given Servlet class.
|
Copyright © 2014 Oracle Corporation. All Rights Reserved.