GeeCON Prague 2014*
The moose likes Servlets and the fly likes Where is the implemetation for methods in HttpServletRequest & HttpServletResponse Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Servlets
Bookmark "Where is the implemetation for methods in HttpServletRequest & HttpServletResponse" Watch "Where is the implemetation for methods in HttpServletRequest & HttpServletResponse" New topic
Author

Where is the implemetation for methods in HttpServletRequest & HttpServletResponse

vijaya bharath
Ranch Hand

Joined: Jun 10, 2005
Posts: 66
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


Regards,<br />Vijaya Bharath.<br />SCJP1.4 <br />SCWCD5.0
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42047
    
  64
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.


Ping & DNS - my free Android networking tools app
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

In otherwords, the folks who build the servlet containers implement those interfaces.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
vijaya bharath
Ranch Hand

Joined: Jun 10, 2005
Posts: 66
Thanx for your reply
i understood
then the implementation for DriverManager and all JDBC interfaces implementation also by container only?
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

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

Joined: Nov 24, 2005
Posts: 14688
    
  16

In otherwords, the folks who build the database drivers implement those interfaces.

(I think I've heard that kind of thing before )


[My Blog]
All roads lead to JavaRanch
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Where is the implemetation for methods in HttpServletRequest & HttpServletResponse