use of io.vertx.ext.web.client.HttpRequest in project vertx-web by vert-x3.
the class ApiClient method pathLabelExplodeObject.
/**
* Call path_label_explode_object with empty body.
* @param color Parameter color inside path
* @param handler The handler for the asynchronous request
*/
public void pathLabelExplodeObject(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/explode/object/{.color*}";
// Remove * . ; ? from url template
uri = uri.replaceAll("\\{{1}([.;?*+]*([^\\{\\}.;?*+]+)[^\\}]*)\\}{1}", "{$2}");
uri = uri.replace("{color}", this.renderPathObjectLabelExplode("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 pathSimpleNoexplodeString.
/**
* Call path_simple_noexplode_string with empty body.
* @param color Parameter color inside path
* @param handler The handler for the asynchronous request
*/
public void pathSimpleNoexplodeString(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/noexplode/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);
}
use of io.vertx.ext.web.client.HttpRequest in project vertx-web by vert-x3.
the class ApiClient method cookieFormNoexplodeObject.
/**
* Call cookie_form_noexplode_object with empty body.
* @param color Parameter color inside cookie
* @param handler The handler for the asynchronous request
*/
public void cookieFormNoexplodeObject(Map<String, 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/object";
HttpRequest request = client.get(uri);
MultiMap requestCookies = MultiMap.caseInsensitiveMultiMap();
if (color != null)
this.renderCookieObjectForm("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 pathMultiSimpleLabel.
/**
* Call path_multi_simple_label with empty body.
* @param colorSimple Parameter color_simple inside path
* @param colorLabel Parameter color_label inside path
* @param handler The handler for the asynchronous request
*/
public void pathMultiSimpleLabel(String colorSimple, List<Object> colorLabel, Handler<AsyncResult<HttpResponse>> handler) {
// Check required params
if (colorSimple == null)
throw new RuntimeException("Missing parameter colorSimple in path");
if (colorLabel == null)
throw new RuntimeException("Missing parameter colorLabel in path");
// Generate the uri
String uri = "/path/multi/{color_simple}{.color_label}/test";
// Remove * . ; ? from url template
uri = uri.replaceAll("\\{{1}([.;?*+]*([^\\{\\}.;?*+]+)[^\\}]*)\\}{1}", "{$2}");
uri = uri.replace("{color_simple}", this.renderPathParam("color_simple", colorSimple));
uri = uri.replace("{color_label}", this.renderPathArrayLabel("color_label", colorLabel));
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 queryFormNoexplodeString.
/**
* Call query_form_noexplode_string with empty body.
* @param color Parameter color inside query
* @param handler The handler for the asynchronous request
*/
public void queryFormNoexplodeString(String color, Handler<AsyncResult<HttpResponse>> handler) {
// Check required params
if (color == null)
throw new RuntimeException("Missing parameter color");
// Generate the uri
String uri = "/query/form/noexplode/string";
HttpRequest request = client.get(uri);
MultiMap requestCookies = MultiMap.caseInsensitiveMultiMap();
if (color != null)
this.addQueryParam("color", color, request);
this.renderAndAttachCookieHeader(request, requestCookies);
request.send(handler);
}
Aggregations