@Test public void testAddParameter() { URI uri = uriBuilder() .scheme("http") .host("www.example.com") .replacePath("/") .addParameter("k1", "1") .addParameter("k1", "2") .addParameter("k1", "0") .addParameter("k2", "3") .build(); assertEquals(uri.toASCIIString(), "http: }
public HttpUriBuilder addParameter(String name, String... values) { return addParameter(name, asList(values)); }
HttpUriBuilder { public HttpUriBuilder addParameter(String name, String... values) { return addParameter(name, asList(values)); } }
HttpUriBuilder { public HttpUriBuilder addParameter(String name, String... values) { return addParameter(name, asList(values)); } private  HttpUriBuilder(); private  HttpUriBuilder(URI previous); }
HttpUriBuilder { public HttpUriBuilder addParameter(String name, String... values) { return addParameter(name, asList(values)); } private  HttpUriBuilder(); private  HttpUriBuilder(URI previous); static HttpUriBuilder uriBuilder(); static HttpUriBuilder uriBuilderFrom(URI uri); HttpUriBuilder scheme(String scheme); HttpUriBuilder host(String host); HttpUriBuilder port(int port); HttpUriBuilder defaultPort(); HttpUriBuilder hostAndPort(HostAndPort hostAndPort); HttpUriBuilder replacePath(String path); HttpUriBuilder appendPath(String path); HttpUriBuilder replaceParameter(String name, String... values); HttpUriBuilder replaceParameter(String name, Iterable<String> values); HttpUriBuilder addParameter(String name, String... values); HttpUriBuilder addParameter(String name, Iterable<String> values); HttpUriBuilder replaceRawQuery(String rawQuery); @Override String toString(); URI build(); }
HttpUriBuilder { public HttpUriBuilder addParameter(String name, String... values) { return addParameter(name, asList(values)); } private  HttpUriBuilder(); private  HttpUriBuilder(URI previous); static HttpUriBuilder uriBuilder(); static HttpUriBuilder uriBuilderFrom(URI uri); HttpUriBuilder scheme(String scheme); HttpUriBuilder host(String host); HttpUriBuilder port(int port); HttpUriBuilder defaultPort(); HttpUriBuilder hostAndPort(HostAndPort hostAndPort); HttpUriBuilder replacePath(String path); HttpUriBuilder appendPath(String path); HttpUriBuilder replaceParameter(String name, String... values); HttpUriBuilder replaceParameter(String name, Iterable<String> values); HttpUriBuilder addParameter(String name, String... values); HttpUriBuilder addParameter(String name, Iterable<String> values); HttpUriBuilder replaceRawQuery(String rawQuery); @Override String toString(); URI build();  }