• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

what is inside servlet.ServletRequest interface

 
Yogesh Lonkar
Ranch Hand
Posts: 94
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can some one explain me what coded inside ServletRequest interace
how does this method gets objects which is used in HttpServletRequest
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64716
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The servlet container is responsible for creating classes that implement the interface.
 
Yogesh Lonkar
Ranch Hand
Posts: 94
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes but what exactly is inside it?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64716
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Likes 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic