Servlet API

Servlet API

  • The javax.servlet and javax.servlet.http packages represent interfaces and classes for servlet api.
  • The javax.servlet package contains many interfaces and classes that are used by the servlet or web container. 
  • These are not specific to any protocol.
  • The javax.servlet.http package contains interfaces and classes that are responsible for http requests only.

Interfaces of javax.servlet:
Servlet, ServletRequest, ServletResponse, RequestDispatcher, ServletConfig, ServletContext, SingleThreadModel, Filter, FilterConfig, FilterChain, ServletRequestListener, ServletRequestAttributeListener, ServletContextListener,
ServletContextAttributeListener

Classes of javax.servlet:
GenericServlet, ServletInputStream, ServletOutputStream, ServletRequestWrapper,
ServletResponseWrapper, ServletRequestEvent, ServletContextEvent,
ServletRequestAttributeEvent, ServletContextAttributeEvent, ServletException,
UnavailableException

Interfaces of javax.servlet.http:
HttpServletRequest, HttpServletResponse, HttpSession, HttpSessionListener,
HttpSessionAttributeListener, HttpSessionBindingListener, HttpSessionActivationListener

Classes of javax.servlet.http:
HttpServlet, Cookie, HttpServletRequestWrapper, HttpServletResponseWrapper,
HttpSessionEvent, HttpSessionBindingEvent

Thanks a lot for query or your valuable suggestions related to the topic.

Previous Post Next Post

Contact Form