• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Where methods of ServletContext , HttpSession , HttpServletRequest are implemented ?

 
Rushi Patel
Greenhorn
Posts: 17
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As we know,
  • ServletContext
  • HttpSession
  • HttpServletRequest

  • are interface in JSP SERVLET api of Java..!

    We repeatedly use it in our code for different purposes, but i am still confused where and in which class all abstract method for given interfaces are implemented ?
    Like setAttribute, getAttribute , removeAttribute , getAttributeNames , getCookies , getContextPath...!

    Please explain it in brief with example if posible..! (I am newbie in this technology..!)

    Thanks in Advance...!
     
    Tim Moores
    Bartender
    Pie
    Posts: 2491
    7
    • 0
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    That would be in classes that are part of the implementing servlet container. So it's different for each server. If you're interested, get the source code of, say, Tomcat and you'll find the classes that implement those interfaces.
     
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic