response.setRenderParameter("repoError", "Invalid repository URL "+repo);
return false;
}
URL test = new URL(repo+"geronimo-plugins.xml");
log.debug("Checking repository "+test);
URLConnection urlConnection = test.openConnection();
if(urlConnection instanceof HttpURLConnection) {
HttpURLConnection con = (HttpURLConnection) urlConnection;
try {
con.connect();
} catch (ConnectException e) {