@Test public void fromRequestQuery() throws URISyntaxException { Request request = new Request(); request.uri = new URI("http: Form f = new Form().fromRequestQuery(request); assertThat(f.get("x").get(0)).isEqualTo("="); assertThat(f.get("y").get(0)).isEqualTo("?"); assertThat(f.get("z").get(0)).isEqualTo("a"); }
public Form fromRequestQuery(Request request) { String query = request.uri.getRawQuery(); if (query != null) { fromString(query); } return this; }
Form extends MultiValueMap<String, String> { public Form fromRequestQuery(Request request) { String query = request.uri.getRawQuery(); if (query != null) { fromString(query); } return this; } }
Form extends MultiValueMap<String, String> { public Form fromRequestQuery(Request request) { String query = request.uri.getRawQuery(); if (query != null) { fromString(query); } return this; } Form(); }
Form extends MultiValueMap<String, String> { public Form fromRequestQuery(Request request) { String query = request.uri.getRawQuery(); if (query != null) { fromString(query); } return this; } Form(); Form fromString(String s); @Override String toString(); Form fromRequestQuery(Request request); void toRequestQuery(Request request); void appendRequestQuery(Request request); Form fromRequestEntity(Request request); void toRequestEntity(Request request); }
Form extends MultiValueMap<String, String> { public Form fromRequestQuery(Request request) { String query = request.uri.getRawQuery(); if (query != null) { fromString(query); } return this; } Form(); Form fromString(String s); @Override String toString(); Form fromRequestQuery(Request request); void toRequestQuery(Request request); void appendRequestQuery(Request request); Form fromRequestEntity(Request request); void toRequestEntity(Request request);  }