I want to intercept a request in a filter/servlet and add a few parameters to it. However, the request does not expose a \'setParameter\' method and the parameter map when m
Subclass HttpServletRequestWrapper and override the getParameter methods. The description of this class reads:
Provides a convenient implementation of the HttpServletRequest interface that can be subclassed by developers wishing to adapt the request to a Servlet.
In the filter, wrap the request in an instance of your subclass.