This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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 Android Security Essentials Live Lessons this week in the Android 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: About HttpServletRequest Interface
 
Similar Threads
Please explain me Service()
getParameter() and other methods....
HttpServletRequest instance transmission over Apache Axis
How do I use the CacheRowSet?
Q: Data type for JSP implicit objects