use of io.vertx.ext.web.client.HttpRequest in project vertx-web by vert-x3.
the class ApiClient method pathMatrixNoexplodeObject.
/**
* Call path_matrix_noexplode_object with empty body.
* @param color Parameter color inside path
* @param handler The handler for the asynchronous request
*/
public void pathMatrixNoexplodeObject(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/noexplode/object/{;color}";
// Remove * . ; ? from url template
uri = uri.replaceAll("\\{{1}([.;?*+]*([^\\{\\}.;?*+]+)[^\\}]*)\\}{1}", "{$2}");
uri = uri.replace("{color}", this.renderPathObjectMatrix("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 cookieFormExplodeObject.
/**
* Call cookie_form_explode_object with empty body.
* @param color Parameter color inside cookie
* @param handler The handler for the asynchronous request
*/
public void cookieFormExplodeObject(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/explode/object";
HttpRequest request = client.get(uri);
MultiMap requestCookies = MultiMap.caseInsensitiveMultiMap();
if (color != null)
this.renderCookieObjectFormExplode("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 queryFormNoexplodeObject.
/**
* Call query_form_noexplode_object with empty body.
* @param color Parameter color inside query
* @param handler The handler for the asynchronous request
*/
public void queryFormNoexplodeObject(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 = "/query/form/noexplode/object";
HttpRequest request = client.get(uri);
MultiMap requestCookies = MultiMap.caseInsensitiveMultiMap();
if (color != null)
this.addQueryObjectForm("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 pathSimpleExplodeArray.
/**
* Call path_simple_explode_array with empty body.
* @param color Parameter color inside path
* @param handler The handler for the asynchronous request
*/
public void pathSimpleExplodeArray(List<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/array/{color*}";
// Remove * . ; ? from url template
uri = uri.replaceAll("\\{{1}([.;?*+]*([^\\{\\}.;?*+]+)[^\\}]*)\\}{1}", "{$2}");
uri = uri.replace("{color}", this.renderPathArraySimpleExplode("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 pathLabelExplodeArray.
/**
* Call path_label_explode_array with empty body.
* @param color Parameter color inside path
* @param handler The handler for the asynchronous request
*/
public void pathLabelExplodeArray(List<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/array/{.color*}";
// Remove * . ; ? from url template
uri = uri.replaceAll("\\{{1}([.;?*+]*([^\\{\\}.;?*+]+)[^\\}]*)\\}{1}", "{$2}");
uri = uri.replace("{color}", this.renderPathArrayLabelExplode("color", color));
HttpRequest request = client.get(uri);
MultiMap requestCookies = MultiMap.caseInsensitiveMultiMap();
this.renderAndAttachCookieHeader(request, requestCookies);
request.send(handler);
}
Aggregations