Uses of Package
jakarta.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.
Classes and interfaces related to the core tag library component of the Jakarta Standard Tag Library.
-
ClassDescriptionDefines a set of methods that a servlet uses to communicate with its servlet container, for example, to get the MIME type of a file, dispatch requests, or write to a log file.This is the event class for notifications about changes to the servlet context of a web application.Provides an output stream for sending binary data to the client.Events of this kind indicate lifecycle events for a ServletRequest.Defines an object to assist a servlet in sending a response to the client.Provides a convenient implementation of the ServletResponse interface that can be subclassed by developers wishing to adapt the response from a Servlet.
-
ClassDescriptionInterface which allows a library/runtime to be notified of a web application's startup phase and perform any required programmatic registration of servlets, filters, and listeners in response to it.Defines a set of methods that a servlet uses to communicate with its servlet container, for example, to get the MIME type of a file, dispatch requests, or write to a log file.This is the event class for notifications about changes to the servlet context of a web application.Interface for receiving notification events about ServletContext lifecycle changes.Defines a general exception a servlet can throw when it encounters difficulty.Events of this kind indicate lifecycle events for a ServletRequest.Interface for receiving notification events about requests coming into and going out of scope of a web application.
-
ClassDescriptionDefines a set of methods that a servlet uses to communicate with its servlet container, for example, to get the MIME type of a file, dispatch requests, or write to a log file.
-
ClassDescriptionDefines a set of methods that a servlet uses to communicate with its servlet container, for example, to get the MIME type of a file, dispatch requests, or write to a log file.
-
ClassDescriptionDefines a set of methods that a servlet uses to communicate with its servlet container, for example, to get the MIME type of a file, dispatch requests, or write to a log file.
-
ClassDescriptionDefines a set of methods that a servlet uses to communicate with its servlet container, for example, to get the MIME type of a file, dispatch requests, or write to a log file.
-
ClassDescriptionDefines a set of methods that a servlet uses to communicate with its servlet container, for example, to get the MIME type of a file, dispatch requests, or write to a log file.
-
ClassDescriptionDefines a set of methods that a servlet uses to communicate with its servlet container, for example, to get the MIME type of a file, dispatch requests, or write to a log file.
-
ClassDescriptionDefines a set of methods that a servlet uses to communicate with its servlet container, for example, to get the MIME type of a file, dispatch requests, or write to a log file.Defines an object to provide client request information to a servlet.Defines an object to assist a servlet in sending a response to the client.
-
ClassDescriptionDefines a set of methods that a servlet uses to communicate with its servlet container, for example, to get the MIME type of a file, dispatch requests, or write to a log file.
-
ClassDescriptionDefines a set of methods that a servlet uses to communicate with its servlet container, for example, to get the MIME type of a file, dispatch requests, or write to a log file.Interface through which a
Servlet
may be further configured. -
ClassDescriptionDefines methods that all servlets must implement.A servlet configuration object used by a servlet container to pass information to a servlet during initialization.Defines a general exception a servlet can throw when it encounters difficulty.Defines an object to provide client request information to a servlet.Defines an object to assist a servlet in sending a response to the client.
-
ClassDescriptionClass representing the execution context for an asynchronous operation that was initiated on a ServletRequest.Event that gets fired when the asynchronous operation initiated on a ServletRequest (via a call to
ServletRequest.startAsync()
orServletRequest.startAsync(ServletRequest, ServletResponse)
) has completed, timed out, or produced an error.Listener that will be notified in the event that an asynchronous operation initiated on a ServletRequest to which the listener had been added has completed, timed out, or resulted in an error.Enumeration of filter dispatcher types.A filter is an object that performs filtering tasks on either the request to a resource (a servlet or static content), or on the response from a resource, or both.A FilterChain is an object provided by the servlet container to the developer giving a view into the invocation chain of a filtered request for a resource.A filter configuration object used by a servlet container to pass information to a filter during initialization.Interface through which aFilter
may be further configured.Interface through which aFilter
registered via one of the addFilter methods onServletContext
may be further configured.Java Class representation of anHttpConstraint
annotation value.Java Class representation of anHttpMethodConstraint
annotation value.Java Class representation of anMultipartConfig
annotation value.This class represents a call-back mechanism that will notify implementations as HTTP request data becomes available to be read without blocking.Interface through which aServlet
orFilter
registered via one of the addServlet or addFilter methods, respectively, onServletContext
may be further configured.Defines an object that receives requests from the client and sends them to any resource (such as a servlet, HTML file, or JSP file) on the server.Defines methods that all servlets must implement.A servlet configuration object used by a servlet container to pass information to a servlet during initialization.Provides information about the connection made to the Servlet container.Defines a set of methods that a servlet uses to communicate with its servlet container, for example, to get the MIME type of a file, dispatch requests, or write to a log file.Event class for notifications about changes to the attributes of the ServletContext of a web application.This is the event class for notifications about changes to the servlet context of a web application.Defines a general exception a servlet can throw when it encounters difficulty.Provides an input stream for reading binary data from a client request, including an efficientreadLine
method for reading data one line at a time.Provides an output stream for sending binary data to the client.Interface through which aServlet
may be further configured.Interface through which aServlet
registered via one of the addServlet methods onServletContext
may be further configured.Defines an object to provide client request information to a servlet.This is the event class for notifications of changes to the attributes of the servlet request in an application.Events of this kind indicate lifecycle events for a ServletRequest.Defines an object to assist a servlet in sending a response to the client.Java Class representation of aServletSecurity
annotation value.Class that may be used to configure various properties of cookies used for session tracking purposes.Enumeration of session tracking modes.Callback notification mechanism that signals to the developer it's possible to write content without blocking. -
ClassDescriptionA filter is an object that performs filtering tasks on either the request to a resource (a servlet or static content), or on the response from a resource, or both.A FilterChain is an object provided by the servlet container to the developer giving a view into the invocation chain of a filtered request for a resource.A filter configuration object used by a servlet container to pass information to a filter during initialization.Defines a generic, protocol-independent filter.Defines a generic, protocol-independent servlet.Defines methods that all servlets must implement.A servlet configuration object used by a servlet container to pass information to a servlet during initialization.Defines a set of methods that a servlet uses to communicate with its servlet container, for example, to get the MIME type of a file, dispatch requests, or write to a log file.Defines a general exception a servlet can throw when it encounters difficulty.Provides an input stream for reading binary data from a client request, including an efficient
readLine
method for reading data one line at a time.Provides an output stream for sending binary data to the client.Defines an object to provide client request information to a servlet.Provides a convenient implementation of the ServletRequest interface that can be subclassed by developers wishing to adapt the request to a Servlet.Defines an object to assist a servlet in sending a response to the client.Provides a convenient implementation of the ServletResponse interface that can be subclassed by developers wishing to adapt the response from a Servlet. -
ClassDescriptionDefines methods that all servlets must implement.A servlet configuration object used by a servlet container to pass information to a servlet during initialization.Defines a set of methods that a servlet uses to communicate with its servlet container, for example, to get the MIME type of a file, dispatch requests, or write to a log file.Defines a general exception a servlet can throw when it encounters difficulty.Defines an object to provide client request information to a servlet.Defines an object to assist a servlet in sending a response to the client.
-
ClassDescriptionDefines a set of methods that a servlet uses to communicate with its servlet container, for example, to get the MIME type of a file, dispatch requests, or write to a log file.Defines an object to provide client request information to a servlet.