| Package | Description |
|---|---|
| javax.servlet |
The javax.servlet package contains a number of classes and interfaces that
describe and define the contracts between a servlet class and the
runtime environment provided for an instance of such a class by a
conforming servlet container.
|
| javax.servlet.http |
The javax.servlet.http package contains a number of classes and interfaces
that describe and define the contracts between a servlet class
running under the HTTP protocol and the runtime environment provided
for an instance of such a class by a conforming servlet container.
|
| Modifier and Type | Class | Description |
|---|---|---|
class |
GenericServlet |
Defines a generic, protocol-independent
servlet.
|
| Modifier and Type | Method | Description |
|---|---|---|
<T extends Servlet> |
ServletContext.createServlet(java.lang.Class<T> clazz) |
Instantiates the given Servlet class.
|
| Modifier and Type | Method | Description |
|---|---|---|
Servlet |
ServletContext.getServlet(java.lang.String name) |
|
Servlet |
UnavailableException.getServlet() |
| Modifier and Type | Method | Description |
|---|---|---|
java.util.Enumeration<Servlet> |
ServletContext.getServlets() |
| Modifier and Type | Method | Description |
|---|---|---|
ServletRegistration.Dynamic |
ServletContext.addServlet(java.lang.String servletName,
Servlet servlet) |
Registers the given servlet instance with this ServletContext
under the given servletName.
|
| Modifier and Type | Method | Description |
|---|---|---|
ServletRegistration.Dynamic |
ServletContext.addServlet(java.lang.String servletName,
java.lang.Class<? extends Servlet> servletClass) |
Adds the servlet with the given name and class type to this servlet
context.
|
| Constructor | Description |
|---|---|
UnavailableException(int seconds,
Servlet servlet,
java.lang.String msg) |
|
UnavailableException(Servlet servlet,
java.lang.String msg) |
| Modifier and Type | Class | Description |
|---|---|---|
class |
HttpServlet |
Provides an abstract class to be subclassed to create
an HTTP servlet suitable for a Web site.
|
Copyright © 1999-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms. Portions Copyright © 1999-2002 The Apache Software Foundation.