a good library url query twine plan java


i need few unequivocally rudimentary url manipulations java. value parameter query, transform it, ... i awaiting rudimentary concentration category doing commons-lang package, nonetheless no. i know rudimentary problem, nonetheless there something already written, since again ? know any ?



i have during slightest following capabilities :



string myurl = "http://www.example.com/test.html?toto=1&titi=2";

// value parameter
string parametervalue = urlutils.getparametervalue(myurl, "toto");
assert.equals(parametervalue, "1");

// transform parameter
string newurl = urlutils.updateparameter(myurl, "toto", 3);
parametervalue = urlutils.getparametervalue(myurl, "toto");
assert.equals(parametervalue, "3");


ideally, take caring encoding associated issues, work java.net.url good strings.



thanks your assistance !



Comments

Popular posts from this blog

list macos calm editors formula editors

how i practical urls indicate .aspx pages asp.net deployed an iis? (preferably but iis)

jaxb - xjc - reworking generated typesafe enum category members