Uses of Interface
jakarta.servlet.Servlet
Packages that use Servlet
Package
Description
The jakarta.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.
The jakarta.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.
-
Uses of Servlet in jakarta.servlet
Classes in jakarta.servlet that implement ServletModifier and TypeClassDescriptionclass
Defines a generic, protocol-independent servlet.Fields in jakarta.servlet declared as ServletMethods in jakarta.servlet with type parameters of type ServletModifier and TypeMethodDescription<T extends Servlet>
TServletContext.createServlet
(Class<T> clazz) Instantiates the given Servlet class.Methods in jakarta.servlet that return ServletModifier and TypeMethodDescriptionServletContext.getServlet
(String name) Deprecated.As of Java Servlet API 2.1, with no direct replacement.UnavailableException.getServlet()
Deprecated.As of Java Servlet API 2.2, with no replacement.Methods in jakarta.servlet that return types with arguments of type ServletModifier and TypeMethodDescriptionServletContext.getServlets()
Deprecated.As of Java Servlet API 2.0, with no replacement.Methods in jakarta.servlet with parameters of type ServletModifier and TypeMethodDescriptionServletContext.addServlet
(String servletName, Servlet servlet) Registers the given servlet instance with this ServletContext under the given servletName.Method parameters in jakarta.servlet with type arguments of type ServletModifier and TypeMethodDescriptionServletContext.addServlet
(String servletName, Class<? extends Servlet> servletClass) Adds the servlet with the given name and class type to this servlet context.Constructors in jakarta.servlet with parameters of type ServletModifierConstructorDescriptionUnavailableException
(int seconds, Servlet servlet, String msg) Deprecated.As of Java Servlet API 2.2, useUnavailableException(String, int)
instead.UnavailableException
(Servlet servlet, String msg) Deprecated.As of Java Servlet API 2.2, useUnavailableException(String)
instead. -
Uses of Servlet in jakarta.servlet.http
Classes in jakarta.servlet.http that implement ServletModifier and TypeClassDescriptionclass
Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site.