Java Code Examples for io.vertx.ext.web.client.HttpRequest#addQueryParam()
The following examples show how to use
io.vertx.ext.web.client.HttpRequest#addQueryParam() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: WebClientExamples.java From vertx-web with Apache License 2.0 | 5 votes |
public void simpleGetWithInitialParams(WebClient client) { HttpRequest<Buffer> request = client .get( 8080, "myserver.mycompany.com", "/some-uri?param1=param1_value¶m2=param2_value"); // Add param3 request.addQueryParam("param3", "param3_value"); // Overwrite param2 request.setQueryParam("param2", "another_param2_value"); }
Example 2
Source File: WebClientExamples.java From vertx-web with Apache License 2.0 | 5 votes |
public void simpleGetOverwritePreviousParams(WebClient client) { HttpRequest<Buffer> request = client .get(8080, "myserver.mycompany.com", "/some-uri"); // Add param1 request.addQueryParam("param1", "param1_value"); // Overwrite param1 and add param2 request.uri("/some-uri?param1=param1_value¶m2=param2_value"); }
Example 3
Source File: ParametersTestAPIClient.java From vertx-web with Apache License 2.0 | 4 votes |
private void addQueryParam(String paramName, Object value, HttpRequest request) { request.addQueryParam(paramName, String.valueOf(value)); }
Example 4
Source File: ApiClient.java From vertx-web with Apache License 2.0 | 4 votes |
private void addQueryParam(String paramName, Object value, HttpRequest request) { request.addQueryParam(paramName, String.valueOf(value)); }