• Post Reply Bookmark Topic Watch Topic
  • New Topic

Request and Response methods  RSS feed

 
Sriniketh Kovin
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have started HF Servlets and JSP.

I wanted to know in which class are the implementation of the methods of the HTTPServletRequest and HTTPServletResponse (say getParameter(String arg),getParameterValues(String args))? I downloaded the jar file containing the source of the servlet-api.jar(V 2.5). I see the ServletRequest Interface with declaration of the methods of the request but not the implementation of these methods.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 37181
515
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Since HttpServletRequest and HttpServletResponse are interfaces, it could be anything. One way to find out is to set a breakpoint in your servlet

For example, on Tomcat it is org.apache.catalina.connector.RequestFacade.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66154
146
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The point is, of course, that it doesn't matter.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!