When you want to provide your own functionality to any of the methods of HttpServletRequest/HttpServletResponse, you can use the wrapper classes. I mean if you want to set a content type of response, you can yourself give body to setContentType method of HttpServletResponse instead of just calling it. This is what I suppose :roll: Someone pls. correct me if I'm wrong.
Joined: Jan 23, 2002
Hmm. Interesting. Why wouldn't a developer just subclass HttpServletRequest/HttpServletResponse instead?