@Test public void testCanonicaliseHost() throws URIException { final String[][] TESTS = new String[][]{ {"http: {"http: {"http: {"https: {"https: {"https: }; for (String[] test: TESTS) { assertEquals("The input '" + test[0] + "' should be reduced to the expected host", test[1], Normalisation.canonicaliseHost(test[0])); } }
public static String canonicaliseHost(String host) throws URIException { return canon.urlStringToKey(host.trim()).replace("/", ""); }
Normalisation { public static String canonicaliseHost(String host) throws URIException { return canon.urlStringToKey(host.trim()).replace("/", ""); } }
Normalisation { public static String canonicaliseHost(String host) throws URIException { return canon.urlStringToKey(host.trim()).replace("/", ""); }  }
Normalisation { public static String canonicaliseHost(String host) throws URIException { return canon.urlStringToKey(host.trim()).replace("/", ""); }  static String sanitiseWARCHeaderValue(String value); static String canonicaliseHost(String host); static String canonicaliseURL(String url); static String fixURLErrors(String url); static String resolveRelative(String url, String relative); static String resolveRelative(String url, String relative, boolean normalise); static String canonicaliseURL(String url, boolean allowHighOrder, boolean createUnambiguous); }
Normalisation { public static String canonicaliseHost(String host) throws URIException { return canon.urlStringToKey(host.trim()).replace("/", ""); }  static String sanitiseWARCHeaderValue(String value); static String canonicaliseHost(String host); static String canonicaliseURL(String url); static String fixURLErrors(String url); static String resolveRelative(String url, String relative); static String resolveRelative(String url, String relative, boolean normalise); static String canonicaliseURL(String url, boolean allowHighOrder, boolean createUnambiguous);  }