This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Servlets and the fly likes About HttpServletRequest Interface Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "About HttpServletRequest Interface" Watch "About HttpServletRequest Interface" New topic
Author

About HttpServletRequest Interface

anil kumar
Ranch Hand

Joined: Feb 23, 2007
Posts: 447
Hi

HttpServletRequest,HttpServletResponse both are interfaces.So the methods which are present in these two interfaces will be implemented by the container vendor.But where is he giving that implementation?? means on which class is he giving that implementation?



Thanks

Anil Kumar
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

It depends on the container.

The following code will show you exactly what class implements HttpRequest:


In Tomcat, this code prints:
org.apache.catalina.connector.RequestFacade
[ March 27, 2008: Message edited by: Ben Souther ]

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

Joined: Feb 23, 2007
Posts: 447
Hi

Ben

Thanks i got it.


Thanks

Anil Kumar
 
 
subject: About HttpServletRequest Interface