Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

About HttpServletRequestWrapper class  RSS feed

 
Raj chiru
Ranch Hand
Posts: 142
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi...
My dout is servlet container(e.g Tomcat)will provide implementation class for HttpServletRequest,so what is the need of HttpServletRequestWrapper class?
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's a class that delegates to an underlying HttpServletRequest. It can be used in any number of ways to provide additional functionality.

For example, it could be used to handle multipart requests automatically, provide additional functionality to JSP EL (in S2, for example, we first use default attribute lookup--if an attribute isn't found we check Struts 2's value stack), and so on.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!