code: private boolean hasSameHost(URI uri) {
          try {
              return host.equals(normalisedHost(uri));
          } catch (URIException e) {
              LOGGER.warn("Failed to normalise host: " + Arrays.toString(uri.getRawHost()), e);
          }
          return false;
      }
docs: Tells whether or not the given {@code uri} has the same host as required by this prefix.
  <p>
  For malformed hosts it returns always {@code false}.
  
  @param uri the {@code URI} whose host will be checked
  @return {@code true} if the host is same, {@code false} otherwise