public static void doGet(URL url){
  try {
    if (mockMode)     return;
    HttpURLConnection urlc=(HttpURLConnection)url.openConnection();
    basicAuth(urlc);
    urlc.connect();
    checkResponseCode(urlc);
  }
 catch (  IOException e) {
    warn("An error occurred getting data from " + url + ". Please check that Solr is running.");
  }
catch (  Exception e) {
    warn("An error occurred getting data from " + url + ". Message: "+ e.getMessage());
  }
}

public static void doGet ( URL url ) { try { if ( mockMode ) return ; HttpURLConnection urlc = ( HttpURLConnection ) url . openConnection ( ) ; basicAuth ( urlc ) ; urlc . connect ( ) ; checkResponseCode ( urlc ) ; } catch ( IOException e ) { warn ( "An error occurred getting data from " + url + ". Please check that Solr is running." ) ; } catch ( Exception e ) { warn ( "An error occurred getting data from " + url + ". Message: " + e . getMessage ( ) ) ; } }
performs a simple get on the given url
