Adding custom headers to a HTTP Request

Folks,

I'm wondering if it is possible to add custom headers to a HttpRquest. In other words is it possible add new headers to the HttpServletRequest. We have addHeader methods for Respones but not Requests. Servlet Filters dont seem to let u do it too.

I saw that the deprecated HttpRequestWrapper (catalina.jar) has addHeader methods, but I get casting issues. Is there any proper way to accomplish this ?

Thanks a bunch for your time n help folks..

[477 byte] By [bronze-starDukes] at [2007-11-26 12:14:31]
# 1
You can add information to the request object using the request.setAttribute method
goldstar at 2007-7-7 14:17:09 > top of Java-index,Archived Forums,Socket Programming...
# 2
Unfortunately I would need to add the information as a HTTP Request HEADER and not as a request attributte. I would need something like request.addHeader(obj1,Obj2), which is not available.
bronzestar at 2007-7-7 14:17:09 > top of Java-index,Archived Forums,Socket Programming...