protocol = svnUrl.substring(0,i).toLowerCase(); if ((!protocol.equals("http")) &&
} protocol =parts[0]; if ((!protocol.equalsIgnoreCase("http")) && !protocol.equalsIgnoreCase("https") &&
    private void parseUrl() throws MalformedURLException{        // for now, we don't verify the url, we let subversion do it        // we just make sure the protocol is one we support        // (scheme)://(optional_stuff)        int i = svnUrl.indexOf("://");        if (i == -1)            throw new MalformedURLException("Invalid svn url :"+svnUrl);        protocol = svnUrl.substring(0,i).toLowerCase();        if ((!protocol.equals("http")) &&            (!protocol.equals("file")) &&            (!protocol.equals("svn")) &&            (!protocol.equals("svn+ssh")) ) {            throw new MalformedURLException("Invalid svn url :"+svnUrl);        }    }