Uses of Interface
jakarta.servlet.Servlet
-
Packages that use Servlet Package Description jakarta.servlet 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.jakarta.servlet.http 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 Servlet Modifier and Type Class Description class
GenericServlet
Defines a generic, protocol-independent servlet.Methods in jakarta.servlet with type parameters of type Servlet Modifier and Type Method Description <T extends Servlet>
TServletContext. createServlet(Class<T> clazz)
Instantiates the given Servlet class.Methods in jakarta.servlet with parameters of type Servlet Modifier and Type Method Description ServletRegistration.Dynamic
ServletContext. 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 Servlet Modifier and Type Method 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. -
Uses of Servlet in jakarta.servlet.http
Classes in jakarta.servlet.http that implement Servlet Modifier and Type Class Description class
HttpServlet
Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site.
-