@Test public void uriInteropAllCodepoints() { for (char point = 0; point < 0x100; point++) { String input = "" + point; Url url = Urls.http("host.com") .path("/" + input) .query(input, input) .fragment(input) .create(); assertEquals(url.toString(), url.uri().toString()); } }
public static UrlBuilder http(String host) { return new UrlBuilder(Scheme.HTTP, host); }
Urls { public static UrlBuilder http(String host) { return new UrlBuilder(Scheme.HTTP, host); } }
Urls { public static UrlBuilder http(String host) { return new UrlBuilder(Scheme.HTTP, host); } private  Urls(); }
Urls { public static UrlBuilder http(String host) { return new UrlBuilder(Scheme.HTTP, host); } private  Urls(); @Nonnull static URI createURI(@Nonnull String fullUrl); @Nonnull static String escape(@Nonnull String url); static UrlBuilder http(String host); static UrlBuilder https(String host); @Nonnull static Url parse(String url); }
Urls { public static UrlBuilder http(String host) { return new UrlBuilder(Scheme.HTTP, host); } private  Urls(); @Nonnull static URI createURI(@Nonnull String fullUrl); @Nonnull static String escape(@Nonnull String url); static UrlBuilder http(String host); static UrlBuilder https(String host); @Nonnull static Url parse(String url);  }