aspose file tools*
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 Spring in Action this week in the Spring 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: 61433
    
  67

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: 61433
    
  67

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.
 
 
subject: what is inside servlet.ServletRequest interface