use of io.vertx.ext.web.client.HttpRequest in project vertx-web by vert-x3.
the class ApiClient method queryPipeDelimitedNoexplodeArray.
/**
* Call query_pipeDelimited_noexplode_array with empty body.
* @param color Parameter color inside query
* @param handler The handler for the asynchronous request
*/
public void queryPipeDelimitedNoexplodeArray(List<Object> color, Handler<AsyncResult<HttpResponse>> handler) {
// Check required params
if (color == null)
throw new RuntimeException("Missing parameter color");
// Generate the uri
String uri = "/query/pipeDelimited/noexplode/array";
HttpRequest request = client.get(uri);
MultiMap requestCookies = MultiMap.caseInsensitiveMultiMap();
if (color != null)
this.addQueryArrayPipeDelimited("color", color, request);
this.renderAndAttachCookieHeader(request, requestCookies);
request.send(handler);
}
use of io.vertx.ext.web.client.HttpRequest in project vertx-web by vert-x3.
the class ApiClient method pathSimpleExplodeObject.
/**
* Call path_simple_explode_object with empty body.
* @param color Parameter color inside path
* @param handler The handler for the asynchronous request
*/
public void pathSimpleExplodeObject(Map<String, Object> color, Handler<AsyncResult<HttpResponse>> handler) {
// Check required params
if (color == null)
throw new RuntimeException("Missing parameter color in path");
// Generate the uri
String uri = "/path/simple/explode/object/{color*}";
// Remove * . ; ? from url template
uri = uri.replaceAll("\\{{1}([.;?*+]*([^\\{\\}.;?*+]+)[^\\}]*)\\}{1}", "{$2}");
uri = uri.replace("{color}", this.renderPathObjectSimpleExplode("color", color));
HttpRequest request = client.get(uri);
MultiMap requestCookies = MultiMap.caseInsensitiveMultiMap();
this.renderAndAttachCookieHeader(request, requestCookies);
request.send(handler);
}
use of io.vertx.ext.web.client.HttpRequest in project vertx-web by vert-x3.
the class ApiClient method headerSimpleExplodeString.
/**
* Call header_simple_explode_string with empty body.
* @param color Parameter color inside header
* @param handler The handler for the asynchronous request
*/
public void headerSimpleExplodeString(String color, Handler<AsyncResult<HttpResponse>> handler) {
// Check required params
if (color == null)
throw new RuntimeException("Missing parameter color");
// Generate the uri
String uri = "/header/simple/explode/string";
HttpRequest request = client.get(uri);
MultiMap requestCookies = MultiMap.caseInsensitiveMultiMap();
if (color != null)
this.addHeaderParam("color", color, request);
this.renderAndAttachCookieHeader(request, requestCookies);
request.send(handler);
}
use of io.vertx.ext.web.client.HttpRequest in project vertx-web by vert-x3.
the class ApiClient method cookieFormNoexplodeArray.
/**
* Call cookie_form_noexplode_array with empty body.
* @param color Parameter color inside cookie
* @param handler The handler for the asynchronous request
*/
public void cookieFormNoexplodeArray(List<Object> color, Handler<AsyncResult<HttpResponse>> handler) {
// Check required params
if (color == null)
throw new RuntimeException("Missing parameter color");
// Generate the uri
String uri = "/cookie/form/noexplode/array";
HttpRequest request = client.get(uri);
MultiMap requestCookies = MultiMap.caseInsensitiveMultiMap();
if (color != null)
this.renderCookieArrayForm("color", color, requestCookies);
this.renderAndAttachCookieHeader(request, requestCookies);
request.send(handler);
}
use of io.vertx.ext.web.client.HttpRequest in project vertx-web by vert-x3.
the class ApiClient method pathMatrixExplodeObject.
/**
* Call path_matrix_explode_object with empty body.
* @param color Parameter color inside path
* @param handler The handler for the asynchronous request
*/
public void pathMatrixExplodeObject(Map<String, Object> color, Handler<AsyncResult<HttpResponse>> handler) {
// Check required params
if (color == null)
throw new RuntimeException("Missing parameter color in path");
// Generate the uri
String uri = "/path/matrix/explode/object/{;color*}";
// Remove * . ; ? from url template
uri = uri.replaceAll("\\{{1}([.;?*+]*([^\\{\\}.;?*+]+)[^\\}]*)\\}{1}", "{$2}");
uri = uri.replace("{color}", this.renderPathObjectMatrixExplode("color", color));
HttpRequest request = client.get(uri);
MultiMap requestCookies = MultiMap.caseInsensitiveMultiMap();
this.renderAndAttachCookieHeader(request, requestCookies);
request.send(handler);
}
Aggregations