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 and Description |
---|---|
class |
GenericServlet
Defines a generic, protocol-independent
servlet.
|
Modifier and Type | Method and Description |
---|---|
<T extends Servlet> |
ServletContext.createServlet(Class<T> clazz)
Instantiates the given Servlet class.
|
Modifier and Type | Method and Description |
---|---|
Servlet |
UnavailableException.getServlet()
Deprecated.
As of Java Servlet API 2.2, with no replacement.
Returns the servlet that is reporting its unavailability.
|
Servlet |
ServletContext.getServlet(String name)
Deprecated.
As of Java Servlet API 2.1, with no direct replacement.
This method was originally defined to retrieve a servlet
from a In lieu of this method, servlets can share information using the
|
Modifier and Type | Method and Description |
---|---|
Enumeration<Servlet> |
ServletContext.getServlets()
Deprecated.
As of Java Servlet API 2.0, with no replacement.
This method was originally defined to return an
|
Modifier and Type | Method and Description |
---|---|
ServletRegistration.Dynamic |
ServletContext.addServlet(String servletName,
Servlet servlet)
Registers the given servlet instance with this ServletContext
under the given servletName.
|
Modifier and Type | Method and Description |
---|---|
ServletRegistration.Dynamic |
ServletContext.addServlet(String servletName,
Class<? extends Servlet> servletClass)
Adds the servlet with the given name and class type to this servlet
context.
|
Constructor and Description |
---|
UnavailableException(int seconds,
Servlet servlet,
String msg)
Deprecated.
As of Java Servlet API 2.2, use
UnavailableException.UnavailableException(String, int) instead. |
UnavailableException(Servlet servlet,
String msg)
Deprecated.
As of Java Servlet API 2.2, use
UnavailableException.UnavailableException(String) instead. |
Modifier and Type | Class and Description |
---|---|
class |
HttpServlet
Provides an abstract class to be subclassed to create
an HTTP servlet suitable for a Web site.
|
Copyright © 1999-2017, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms. Portions Copyright © 1999-2002 The Apache Software Foundation.