@Test public void testServiceNameToUriForm() { final String path = "/a/b"; String[] testServiceNames = { "one", "one-two", "one_two", "12", "x_Y_z", "a.b.c", ClientUtils.HOST_SUBSTITUTION_TOKEN }; for ( String service : testServiceNames ) { String uriForm = ClientUtils.serviceNameToUriForm(service); Assert.assertEquals(" uriForm = ClientUtils.serviceNameToUriForm(service, path); Assert.assertEquals(" } }
public static String serviceNameToUriForm(String serviceName) { return serviceNameToUriForm(serviceName, null); }
ClientUtils { public static String serviceNameToUriForm(String serviceName) { return serviceNameToUriForm(serviceName, null); } }
ClientUtils { public static String serviceNameToUriForm(String serviceName) { return serviceNameToUriForm(serviceName, null); } private  ClientUtils(); }
ClientUtils { public static String serviceNameToUriForm(String serviceName) { return serviceNameToUriForm(serviceName, null); } private  ClientUtils(); static String hostToServiceName(String host); static String serviceNameToUriForm(String serviceName); static String serviceNameToUriForm(String serviceName, String path); static String serviceNameToHost(String serviceName); static String serviceNameToHost(String serviceName, String path); static DiscoveryInstance hostToInstance(Discovery discovery, String host); static URI applyToUri(URI uri, DiscoveryInstance instance); }
ClientUtils { public static String serviceNameToUriForm(String serviceName) { return serviceNameToUriForm(serviceName, null); } private  ClientUtils(); static String hostToServiceName(String host); static String serviceNameToUriForm(String serviceName); static String serviceNameToUriForm(String serviceName, String path); static String serviceNameToHost(String serviceName); static String serviceNameToHost(String serviceName, String path); static DiscoveryInstance hostToInstance(Discovery discovery, String host); static URI applyToUri(URI uri, DiscoveryInstance instance); static final String HOST_SUBSTITUTION_TOKEN; }