What is Servlet Class Hierarchy
The Java Servlet class hierarchy is given below. Like all java classes GenericServlet also inherits from Object class. Apart from GenericServlet and HttpServlet classes, ServletRequest, HttpServletRequest, ServeltResponse and HttpServletResponse are also helpful in writing a servlet. As you can guess ServletRequest & ServletResponse are used in conjunction with GenericServlet. These classes are used for processing protocol
independent requests and generating protocol independent responses respectively.
HttpServletRequest & HttpServletRespose are used for processing HTTP protocol specific requests and generating HTTP specific response. Obviously these classes will be used in conjunction with HttpServet class, which means you are making a HTTP protocol specific servlet.
Related Topics:
independent requests and generating protocol independent responses respectively.
HttpServletRequest & HttpServletRespose are used for processing HTTP protocol specific requests and generating HTTP specific response. Obviously these classes will be used in conjunction with HttpServet class, which means you are making a HTTP protocol specific servlet.
Related Topics:
What is Servlet Class Hierarchy
Reviewed by Anonymous J
on
22:31:00
Rating: