protected boolean isValidServer(final String server){
  boolean isValid=checkServerPrefixes(server);
  if (isValid) {
    if (server.startsWith("http")) {
      isValid=canConnect(server);
    }
 else     if (server.startsWith("file:")) {
      isValid=isDirectory(server);
    }
  }
  return isValid;
}

protected boolean isValidServer ( final String server ) { boolean isValid = checkServerPrefixes ( server ) ; if ( isValid ) { if ( server . startsWith ( "http" ) ) { isValid = canConnect ( server ) ; } else if ( server . startsWith ( "file:" ) ) { isValid = isDirectory ( server ) ; } } return isValid ; }
returns whether the given server can be connected to .
