• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HttpServletRequest Class methods

 
Sumi Festus
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!! I was just reading through some servlet class and came across this code: Principal principal=req.getUserPrincipal();

Here req is an object of the HttpServletRequest class. principal is an object of the java.security.Principal.

Is the getUserPrincipal() method implemented in the HttpServletRequest class? I read the sun techdocs and couldnt find the method listed in the HttpServletRequest class.
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is defined in the HttpSerlvetRequest interface :
http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/http/HttpServletRequest.html
 
Sumi Festus
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot.....
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic