This question has almost certainly been asked before, but I ask it anyway because I couldn\'t find an answer.
Generally, is there a utility class of some sort that assis
This does not answer OP's question directly (i.e. it's not a generic, all-around library for URL manipulation), but: if you're going to be using Spring anyway, you might as well consider the ServletUriComponentsBuilder
and UriComponentsBuilder
classes (see here and here for javadocs).
I believe they are bundled with the spring-web
dependency. IMHO, these offer quite a few convenient utility methods for working with URIs, URLs and query parameters.