aspose file tools*
The moose likes Servlets and the fly likes Where methods of ServletContext , HttpSession , HttpServletRequest are implemented ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Where methods of ServletContext , HttpSession , HttpServletRequest are implemented ?" Watch "Where methods of ServletContext , HttpSession , HttpServletRequest are implemented ?" New topic
Author

Where methods of ServletContext , HttpSession , HttpServletRequest are implemented ?

Rushi Patel
Greenhorn

Joined: Sep 14, 2011
Posts: 17
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
    Rancher

    Joined: Sep 21, 2011
    Posts: 2408
    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.
     
    I agree. Here's the link: http://aspose.com/file-tools
     
    subject: Where methods of ServletContext , HttpSession , HttpServletRequest are implemented ?