@Test public void testAddParam() throws Exception { String userAdded = UriUtil.addParam(URI2, "user", "xxx"); assertEquals("jdbc:postgresql: assertEquals("jdbc:postgresql: }
public static String addParam(String uri, String name, String value) { final String questionMarkOrAnd = uri.split("\\?").length > 1 ? "&" : "?"; return uri + questionMarkOrAnd + name + "=" + value; }
UriUtil { public static String addParam(String uri, String name, String value) { final String questionMarkOrAnd = uri.split("\\?").length > 1 ? "&" : "?"; return uri + questionMarkOrAnd + name + "=" + value; } }
UriUtil { public static String addParam(String uri, String name, String value) { final String questionMarkOrAnd = uri.split("\\?").length > 1 ? "&" : "?"; return uri + questionMarkOrAnd + name + "=" + value; }  }
UriUtil { public static String addParam(String uri, String name, String value) { final String questionMarkOrAnd = uri.split("\\?").length > 1 ? "&" : "?"; return uri + questionMarkOrAnd + name + "=" + value; }  static String getScheme(URI uri); static String getScheme(String uri); static String addParam(String uri, String name, String value); }
UriUtil { public static String addParam(String uri, String name, String value) { final String questionMarkOrAnd = uri.split("\\?").length > 1 ? "&" : "?"; return uri + questionMarkOrAnd + name + "=" + value; }  static String getScheme(URI uri); static String getScheme(String uri); static String addParam(String uri, String name, String value);  }