Take this HTTP query String:
foo=fooValue&bar=barValue&phleem=phleemValue
Or this one:
bar=barValue&phleem=phleemValue&foo=someOtherFoo
What would be the best way to remove the foo parameter?
All Java solutions welcome, but Guava preferred.
(There is no ServletContext available, so Servlet methods won’t help)
Update: The method should handle multiple parameters to remove.
This is not the most elegant solution, but works as you expect:
UPDATE
To handle multiple parameters: