File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes what is inside servlet.ServletRequest interface Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "what is inside servlet.ServletRequest interface" Watch "what is inside servlet.ServletRequest interface" New topic
Author

what is inside servlet.ServletRequest interface

Yogesh Lonkar
Ranch Hand

Joined: Jul 17, 2012
Posts: 82

Can some one explain me what coded inside ServletRequest interace
how does this method gets objects which is used in HttpServletRequest


Learning some thing New Every Day
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56185
    
  13

The servlet container is responsible for creating classes that implement the interface.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Yogesh Lonkar
Ranch Hand

Joined: Jul 17, 2012
Posts: 82

yes but what exactly is inside it?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56185
    
  13

Whatever the team implementing the class put into it. If you want to see an example, grab the source code of one of the open source containers and look.

If this is to satisfy some curiosity, that's fine. But this type of knowledge is not necessary to use Servlets. That's the beauty of interfaces. As long as the implementing class does what the interface intends, the actual implementation is irrelevant.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: what is inside servlet.ServletRequest interface
 
Similar Threads
Array list > for loop or iterator
what server is used inside the weblogic web server?
Uses Points
read text file
<error-page> tag mechanism