@Test public void host_removesUserInfo() { Url url = Urls.http("user:password@host.com").create(); assertEquals("host.com", url.host().display()); url = Urls.http("user@domain.com:password@host.com").create(); assertEquals("host.com", url.host().display()); }
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);  }