@Test public void testSanitizeUriNoTrailingSlash() { String uri = "http: Assert.assertEquals(RestliUtils.sanitizeUri(uri), uri + "/"); }
public static String sanitizeUri(String uri) { uri = uri.toLowerCase(); if (!uri.startsWith(URI_SCHEME) && !uri.startsWith(URI_SCHEME_SSL)) { uri = URI_SCHEME + uri; } return StringUtils.appendIfMissing(uri, "/"); }
RestliUtils { public static String sanitizeUri(String uri) { uri = uri.toLowerCase(); if (!uri.startsWith(URI_SCHEME) && !uri.startsWith(URI_SCHEME_SSL)) { uri = URI_SCHEME + uri; } return StringUtils.appendIfMissing(uri, "/"); } }
RestliUtils { public static String sanitizeUri(String uri) { uri = uri.toLowerCase(); if (!uri.startsWith(URI_SCHEME) && !uri.startsWith(URI_SCHEME_SSL)) { uri = URI_SCHEME + uri; } return StringUtils.appendIfMissing(uri, "/"); }  }
RestliUtils { public static String sanitizeUri(String uri) { uri = uri.toLowerCase(); if (!uri.startsWith(URI_SCHEME) && !uri.startsWith(URI_SCHEME_SSL)) { uri = URI_SCHEME + uri; } return StringUtils.appendIfMissing(uri, "/"); }  static String sanitizeUri(String uri); static Stream<T> withPaging(Stream<T> stream, final PagingContext pagingContext); }
RestliUtils { public static String sanitizeUri(String uri) { uri = uri.toLowerCase(); if (!uri.startsWith(URI_SCHEME) && !uri.startsWith(URI_SCHEME_SSL)) { uri = URI_SCHEME + uri; } return StringUtils.appendIfMissing(uri, "/"); }  static String sanitizeUri(String uri); static Stream<T> withPaging(Stream<T> stream, final PagingContext pagingContext);  }