ServletHttp

This package contains more convient classes and interfaces to develop http based Servlet

Interfaces

HttpServletRequest

It is child interface of ServletRequest.It contains client Information.

HttpServletResonse

It is child interface of ServletResponse and contains several methods used for prepration of response.

HttpSession

It is used for session management

In addition to the above interfaces, javax.Servlet.http package defines the following extra interfaces also.

  1. HttpSessionListener.
  2. HttpSessionAttributeListener.
  3. HttpSessionActivationListener.
  4. HttpSessionBindingListener.
  5. HttpSessionContext(Deprecated in Servlet2.1 version)

Classes

HttpServlet
  1. It is the child class of GenericServlet.
  2. It can be used as base class to develop http based servlets.
Cookie
  1. Used for session management.

In addition to the above classes,javax.servlet.http package contains the following classes also.

  1. HttpSessionEvent
  2. HttpSessionBindingEvent
  3. HttpServletRequestWrapper
  4. HttpServletResponseWrapper
  5. HttpUtils(Deprecated in servlet 2.3 version)