public static String formatUrlForSecurityDisplay(URI uri,boolean showScheme){
  return formatUrlForSecurityDisplay(uri.toString(),showScheme);
}

public static String formatUrlForSecurityDisplay ( URI uri , boolean showScheme ) { return formatUrlForSecurityDisplay ( uri . toString ( ) , showScheme ) ; }
builds a string that strips down the url to its scheme , host , and port .
