Adding an HTTP Header to the request in a servlet filter
Posted
by Mason
on Stack Overflow
See other posts from Stack Overflow
or by Mason
Published on 2010-05-11T14:58:13Z
Indexed on
2010/05/11
15:14 UTC
Read the original article
Hit count: 380
I'm integrating with an existing servlet that pulls some properties out of the HTTP header. Basically, I'm implementing an interface that doesn't have access to the actual request, it just has access to a map of k->v for the HTTP headers.
I need to pass in a request parameter. The plan is to use a servlet filter to go from parameter to header value but of course the HttpServletRequest object doesn't have an addHeader() method.
Any ideas?
© Stack Overflow or respective owner