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.
posted 18 years ago
Hmm. Interesting. Why wouldn't a developer just subclass HttpServletRequest/HttpServletResponse instead?
Sun Certified J2EE Architect for the J2EE Platform (Part 1)<br />Sun Certified Web Component Developer for the J2EE Platform<br />Sun Certified Programmer for the Java 2 Platform