aspose file tools*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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()
Q: Data type for JSP implicit objects
getParameter() and other methods....
How do I use the CacheRowSet?
HttpServletRequest instance transmission over Apache Axis