public static String reverseUrl(String urlString) throws MalformedURLException {
  return reverseUrl(new URL(urlString));
}

public static String reverseUrl ( String urlString ) throws MalformedURLException { return reverseUrl ( new URL ( urlString ) ) ; }
reverses a url ' s domain . this form is better for storing in hbase . because scans within the same domain are faster . < p > e . g . " http : / / bar . foo . com : 8983 / to / index . html ? a = b " becomes " com . foo . bar : 8983 : http / to / index . html ? a = b " .
