Intercept incoming requests with a custom HttpServletRequestWrapper and modify the request parameters there.