use of io.vertx.ext.web.client.HttpRequest in project vertx-web by vert-x3.
the class ApiClient method pathMultiLabelMatrix.
/**
* Call path_multi_label_matrix with empty body.
* @param colorLabel Parameter color_label inside path
* @param colorMatrix Parameter color_matrix inside path
* @param handler The handler for the asynchronous request
*/
public void pathMultiLabelMatrix(List<Object> colorLabel, Map<String, Object> colorMatrix, Handler<AsyncResult<HttpResponse>> handler) {
// Check required params
if (colorLabel == null)
throw new RuntimeException("Missing parameter colorLabel in path");
if (colorMatrix == null)
throw new RuntimeException("Missing parameter colorMatrix in path");
// Generate the uri
String uri = "/path/multi/{.color_label}{;color_matrix*}/test";
// Remove * . ; ? from url template
uri = uri.replaceAll("\\{{1}([.;?*+]*([^\\{\\}.;?*+]+)[^\\}]*)\\}{1}", "{$2}");
uri = uri.replace("{color_label}", this.renderPathArrayLabel("color_label", colorLabel));
uri = uri.replace("{color_matrix}", this.renderPathObjectMatrixExplode("color_matrix", colorMatrix));
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 pathLabelNoexplodeObject.
/**
* Call path_label_noexplode_object with empty body.
* @param color Parameter color inside path
* @param handler The handler for the asynchronous request
*/
public void pathLabelNoexplodeObject(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/label/noexplode/object/{.color}";
// Remove * . ; ? from url template
uri = uri.replaceAll("\\{{1}([.;?*+]*([^\\{\\}.;?*+]+)[^\\}]*)\\}{1}", "{$2}");
uri = uri.replace("{color}", this.renderPathObjectLabel("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 pathSimpleExplodeString.
/**
* Call path_simple_explode_string with empty body.
* @param color Parameter color inside path
* @param handler The handler for the asynchronous request
*/
public void pathSimpleExplodeString(String 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/string/{color*}";
// Remove * . ; ? from url template
uri = uri.replaceAll("\\{{1}([.;?*+]*([^\\{\\}.;?*+]+)[^\\}]*)\\}{1}", "{$2}");
uri = uri.replace("{color}", this.renderPathParam("color", color));
HttpRequest request = client.get(uri);
MultiMap requestCookies = MultiMap.caseInsensitiveMultiMap();
this.renderAndAttachCookieHeader(request, requestCookies);
request.send(handler);
}
Aggregations