• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Wheres the HttpServletRequest/HttpServletResponse implemented

 
Moha Shaf
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
May be this is a very trivial question but can someone help me out.
Where are the HttpServletRequest and HttpServletResponse interface implemented. I see that the developers use the methods declared in these interfaces but have no clue where it is implemented.

Thanks in advance
 
Vijitha Kumara
Bartender
Posts: 3913
9
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Web container/Application server (which adheres to the Servlet specification) is responsible for providing those implementations.
 
Nishan Patel
Ranch Hand
Posts: 689
Eclipse IDE Java Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hi,


You extends your class with HttpServlet which extends and implement higher level class and interface so container will do for you you don't need to do this.

 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you're looking for concrete code examples, you can download the Tomcat source code. It has the classes that implement those interfaces.
 
Moha Shaf
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks all. I was able to view the classes that implement these interfaces.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic