use of io.vertx.ext.web.client.HttpRequest in project vertx-web by vert-x3.
the class ApiClient method cookieFormNoexplodeString.
/**
* Call cookie_form_noexplode_string with empty body.
* @param color Parameter color inside cookie
* @param handler The handler for the asynchronous request
*/
public void cookieFormNoexplodeString(String 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/string";
HttpRequest request = client.get(uri);
MultiMap requestCookies = MultiMap.caseInsensitiveMultiMap();
if (color != null)
this.renderCookieParam("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 cookieFormExplodeArray.
/**
* Call cookie_form_explode_array with empty body.
* @param color Parameter color inside cookie
* @param handler The handler for the asynchronous request
*/
public void cookieFormExplodeArray(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/explode/array";
HttpRequest request = client.get(uri);
MultiMap requestCookies = MultiMap.caseInsensitiveMultiMap();
if (color != null)
this.renderCookieArrayFormExplode("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 pathMultiSimpleMatrix.
/**
* Call path_multi_simple_matrix with empty body.
* @param colorSimple Parameter color_simple inside path
* @param colorMatrix Parameter color_matrix inside path
* @param handler The handler for the asynchronous request
*/
public void pathMultiSimpleMatrix(String colorSimple, List<Object> colorMatrix, Handler<AsyncResult<HttpResponse>> handler) {
// Check required params
if (colorSimple == null)
throw new RuntimeException("Missing parameter colorSimple in path");
if (colorMatrix == null)
throw new RuntimeException("Missing parameter colorMatrix in path");
// Generate the uri
String uri = "/path/multi/{color_simple}{;color_matrix}/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_matrix}", this.renderPathArrayMatrix("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 pathMatrixNoexplodeString.
/**
* Call path_matrix_noexplode_string with empty body.
* @param color Parameter color inside path
* @param handler The handler for the asynchronous request
*/
public void pathMatrixNoexplodeString(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/matrix/noexplode/string/{;color}";
// Remove * . ; ? from url template
uri = uri.replaceAll("\\{{1}([.;?*+]*([^\\{\\}.;?*+]+)[^\\}]*)\\}{1}", "{$2}");
uri = uri.replace("{color}", this.renderPathMatrix("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 queryFormNoexplodeArray.
/**
* Call query_form_noexplode_array with empty body.
* @param color Parameter color inside query
* @param handler The handler for the asynchronous request
*/
public void queryFormNoexplodeArray(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/form/noexplode/array";
HttpRequest request = client.get(uri);
MultiMap requestCookies = MultiMap.caseInsensitiveMultiMap();
if (color != null)
this.addQueryArrayForm("color", color, request);
this.renderAndAttachCookieHeader(request, requestCookies);
request.send(handler);
}
Aggregations