Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HttpServletRequestWrapper

 
Amirtharaj Chinnaraj
Ranch Hand
Posts: 241
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi guys

iam having a doubt that how the service(method) defined in HttpServletRequestWrapper is availaible to

HttpServletRequest even though they both are implementing HttpServletRequest interface



i think the container takes care of assigning the HttpServletRequestWrapper to the
HttpServletRequest which will be sent to the servlet for processing


if we have to mention the container wether we are using HttpServletRequestWrapper
similar to filters and listeners

looking for your replies
regards
amir
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not sure what you're asking here.
There is no service method defined in HttpServletRequestWrapper.

Are you asking whether or not the wrapper has to be explicitly declared in the deployment descriptor?
 
Amirtharaj Chinnaraj
Ranch Hand
Posts: 241
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes ben i want to know if iam using requestWrapper wether i need to specify

any thing in web.xml

regards
amir
 
Bosun Bello
Ranch Hand
Posts: 1511
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No. You do not need to indicate in web.xml that you are using the requestWrapper.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic