@Test public void convertAddressToUrlCreatesComponentsCorrectly_Ssl() throws MalformedURLException { assertThat(PaxosRemotingUtils.convertAddressToUrl(SSL_TIMELOCK, "foo:42/api/bar/baz/bzzt")) .isEqualTo(new URL("https", "foo", 42, "/api/bar/baz/bzzt")); }
public static URL convertAddressToUrl(TimeLockInstallConfiguration install, String address) { try { return UriBuilder.fromPath(addProtocol(install, address)).build().toURL(); } catch (MalformedURLException e) { throw new RuntimeException(e); } }
PaxosRemotingUtils { public static URL convertAddressToUrl(TimeLockInstallConfiguration install, String address) { try { return UriBuilder.fromPath(addProtocol(install, address)).build().toURL(); } catch (MalformedURLException e) { throw new RuntimeException(e); } } }
PaxosRemotingUtils { public static URL convertAddressToUrl(TimeLockInstallConfiguration install, String address) { try { return UriBuilder.fromPath(addProtocol(install, address)).build().toURL(); } catch (MalformedURLException e) { throw new RuntimeException(e); } } private  PaxosRemotingUtils(); }
PaxosRemotingUtils { public static URL convertAddressToUrl(TimeLockInstallConfiguration install, String address) { try { return UriBuilder.fromPath(addProtocol(install, address)).build().toURL(); } catch (MalformedURLException e) { throw new RuntimeException(e); } } private  PaxosRemotingUtils(); static int getQuorumSize(Collection<T> elements); static List<String> getRemoteServerPaths(TimeLockInstallConfiguration install); static ImmutableList<String> getClusterAddresses(TimeLockInstallConfiguration install); static List<String> getRemoteServerAddresses(TimeLockInstallConfiguration install); static ClusterConfiguration getClusterConfiguration(TimeLockInstallConfiguration install); static Optional<SslConfiguration> getSslConfigurationOptional(TimeLockInstallConfiguration install); static String addProtocol(TimeLockInstallConfiguration install, String address); static List<String> addProtocols(TimeLockInstallConfiguration install, List<String> addresses); static URL convertAddressToUrl(TimeLockInstallConfiguration install, String address); static List<URL> convertAddressesToUrls(TimeLockInstallConfiguration install, List<String> addresses); }
PaxosRemotingUtils { public static URL convertAddressToUrl(TimeLockInstallConfiguration install, String address) { try { return UriBuilder.fromPath(addProtocol(install, address)).build().toURL(); } catch (MalformedURLException e) { throw new RuntimeException(e); } } private  PaxosRemotingUtils(); static int getQuorumSize(Collection<T> elements); static List<String> getRemoteServerPaths(TimeLockInstallConfiguration install); static ImmutableList<String> getClusterAddresses(TimeLockInstallConfiguration install); static List<String> getRemoteServerAddresses(TimeLockInstallConfiguration install); static ClusterConfiguration getClusterConfiguration(TimeLockInstallConfiguration install); static Optional<SslConfiguration> getSslConfigurationOptional(TimeLockInstallConfiguration install); static String addProtocol(TimeLockInstallConfiguration install, String address); static List<String> addProtocols(TimeLockInstallConfiguration install, List<String> addresses); static URL convertAddressToUrl(TimeLockInstallConfiguration install, String address); static List<URL> convertAddressesToUrls(TimeLockInstallConfiguration install, List<String> addresses);  }