On 14/07/14 09:54, Alessio Soldano wrote:
2) if that's required, would you mind me trying to add some preliminary checks to avoid the URL generation when that's clearly going to raise an exception (for instance by parsing the string using a pre-computed regular expression) ?
Apache Commons UrlValidator [1] might be a solution for this, btw.
[1] http://commons.apache.org/proper/commons-validator/apidocs/src-html/org/apache/commons/validator/routines/UrlValidator.html
-- Alessio Soldano Web Service Lead, JBoss
