code: public static String shortenUrl( URI uri )
      {
          return uri.getScheme() + "://" + uri.getHost() + uri.getPath();
      }
docs: Removes query parameters from url (only for logging, as query parameters may contain sensible informations)
  
  @param uri
  @return URI without parameters