I think what you want is called a query string parser instead of an url manipulator and here’s one: http://ostermiller.org/utils/CGIParser.java.html
I think what you want is called a query string parser instead of an url manipulator and here’s one: http://ostermiller.org/utils/CGIParser.java.html