Top Description Interfaces Classes Enums
[default module]

Package 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.

Interface Summary

Modifier and TypeInterface and Description
public interface
HttpServletMapping

Allows runtime discovery of the manner in which the HttpServlet for the current HttpServletRequest was invoked.

public interface
HttpServletRequest

Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.

public interface
HttpServletResponse

Extends the ServletResponse interface to provide HTTP-specific functionality in sending a response.

public interface
HttpSession

Provides a way to identify a user across more than one page request or visit to a Web site and to store information about that user.

public interface
HttpSessionActivationListener

Objects that are bound to a session may listen to container events notifying them that sessions will be passivated and that session will be activated.

public interface
HttpSessionAttributeListener

Interface for receiving notification events about HttpSession attribute changes.

public interface
HttpSessionBindingListener

Causes an object to be notified when it is bound to or unbound from a session.

public interface
HttpSessionContext

Deprecated As of Java(tm) Servlet API 2.1 for security reasons, with no replacement. This interface will be removed in a future version of this API.
public interface
HttpSessionIdListener

Interface for receiving notification events about HttpSession id changes.

public interface
HttpSessionListener

Interface for receiving notification events about HttpSession lifecycle changes.

public interface
HttpUpgradeHandler

This interface encapsulates the upgrade protocol processing.

public interface
Part

This class represents a part or form item that was received within a multipart/form-data POST request.

public interface
PushBuilder

Build a request to be pushed.

public interface
WebConnection

This interface encapsulates the connection for an upgrade request.

Class Summary

Modifier and TypeClass and Description
public class
Cookie

Creates a cookie, a small amount of information sent by a servlet to a Web browser, saved by the browser, and later sent back to the server.

public abstract class
HttpFilter

Provides an abstract class to be subclassed to create an HTTP filter suitable for a Web site.

public abstract class
HttpServlet

Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site.

public class
HttpServletRequestWrapper

Provides a convenient implementation of the HttpServletRequest interface that can be subclassed by developers wishing to adapt the request to a Servlet.

public class
HttpServletResponseWrapper

Provides a convenient implementation of the HttpServletResponse interface that can be subclassed by developers wishing to adapt the response from a Servlet.

public class
HttpSessionBindingEvent

Events of this type are either sent to an object that implements HttpSessionBindingListener when it is bound or unbound from a session, or to a HttpSessionAttributeListener that has been configured in the deployment descriptor when any attribute is bound, unbound or replaced in a session.

public class
HttpSessionEvent

This is the class representing event notifications for changes to sessions within a web application.

public class
HttpUtils

Deprecated As of Java(tm) Servlet API 2.3. These methods were only useful with the default encoding and have been moved to the request interfaces.
pack-priv class
pack-priv class

Enum Summary

Modifier and TypeEnum and Description
public enum
MappingMatch

Enumeration of Servlet mapping types.