Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Servlets and the fly likes what is inside servlet.ServletRequest 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 "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: 94

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: 60810
    
  65

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


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Yogesh Lonkar
Ranch Hand

Joined: Jul 17, 2012
Posts: 94

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

Joined: Jan 10, 2002
Posts: 60810
    
  65

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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: what is inside servlet.ServletRequest interface
 
Similar Threads
read text file
Array list > for loop or iterator
Uses Points
<error-page> tag mechanism
what server is used inside the weblogic web server?