@Test public void uriInteropHash() { Url url = Urls.http("host.com") .path("/c#") .query("q", "#!") .fragment("#fragment#") .create(); URI uri = url.uri(); assertEquals("/c#", uri.getPath()); assertEquals("q=#!", uri.getQuery()); assertEquals("#fragment#", uri.getFragment()); }
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);  }