• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Where is the implemetation for methods in HttpServletRequest & HttpServletResponse

 
vijaya bharath
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,


I got a small doubt, i thought abt it in so many ways, but i didn't get. can anybody answer to my ques,my ques is

HttpServletRequest contains methods like getQueryString(),getSession() etc,as well in HttpServletResponse we have getPrintWriter() etc..
but these HttpServletRequest,HttpServletResponse r interfaces
where is the implementation for these methods
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you're using Tomcat, look inside the catalina.jar file. It contains a number of classes whose names suggest that they might implement those interfaces.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In otherwords, the folks who build the servlet containers implement those interfaces.
 
vijaya bharath
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanx for your reply
i understood
then the implementation for DriverManager and all JDBC interfaces implementation also by container only?
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Close, but not quite.

The DriverManager is a concrete class.
The implementations for the JDBC classes are in the JAR file for the Driver (typically) and the DriverManager takes care of finding and calling them for you.
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In otherwords, the folks who build the database drivers implement those interfaces.

(I think I've heard that kind of thing before )
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic