07.httpServletRequest servletrequest Relationship

Source: Internet
Author: User



The HttpServletRequest interface inherits from ServletRequest, which is a more specific abstraction of the ServletRequest for the HTTP protocol. HttpServletRequest is typically implemented by server providers such as Tomcat,jboss, and we do not need to be concerned with their implementation logic. So the general website application development use to HttpServletRequest can.
ServletRequest is designed for multiple protocols, and the current mainstream is the HTTP protocol.
==========
HttpServletRequest and ServletRequest are all interfaces.
HttpServletRequest inherited from ServletRequest
HttpServletRequest has more methods than ServletRequest for the HTTP protocol.
Such as
GetHeader (String name),
GetMethod (),
GetSession ()
Wait a minute.
They correspond to the implementation class:
Javax.servlet.ServletRequestWrapper (Implements Javax.servlet.ServletRequest)
Javax.servlet.http.HttpServletRequestWrapper (Implements Javax.servlet.http.HttpServletRequest)

07.httpServletRequest servletrequest Relationship

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.