HttpServletRequest
Learn HttpServletRequest (Servlet Integration, Spring MVC) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.
Fresher Notes HttpServletRequest is the object that represents one incoming HTTP request: method, URL, headers, parameters, cookies and body. Reading data uses getParameter for query and form values, getHeader for headers and getInputStream for the body. Request attributes ( setAttribute and getAttribute ) carry data between filters, servlets and views within one request.