use of io.vertx.ext.web.client.HttpRequest in project vertx-web by vert-x3.
the class ApiClient method pathLabelNoexplodeArray.
/**
* Call path_label_noexplode_array with empty body.
* @param color Parameter color inside path
* @param handler The handler for the asynchronous request
*/
public void pathLabelNoexplodeArray(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/noexplode/array/{.color}";
// Remove * . ; ? from url template
uri = uri.replaceAll("\\{{1}([.;?*+]*([^\\{\\}.;?*+]+)[^\\}]*)\\}{1}", "{$2}");
uri = uri.replace("{color}", this.renderPathArrayLabel("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 headerSimpleNoexplodeArray.
/**
* Call header_simple_noexplode_array with empty body.
* @param color Parameter color inside header
* @param handler The handler for the asynchronous request
*/
public void headerSimpleNoexplodeArray(List<Object> color, Handler<AsyncResult<HttpResponse>> handler) {
// Check required params
if (color == null)
throw new RuntimeException("Missing parameter color");
// Generate the uri
String uri = "/header/simple/noexplode/array";
HttpRequest request = client.get(uri);
MultiMap requestCookies = MultiMap.caseInsensitiveMultiMap();
if (color != null)
this.addHeaderArraySimple("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 cookieFormExplodeEmpty.
/**
* Call cookie_form_explode_empty with empty body.
* @param color Parameter color inside cookie
* @param handler The handler for the asynchronous request
*/
public void cookieFormExplodeEmpty(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/explode/empty";
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 queryFormExplodeArray.
/**
* Call query_form_explode_array with empty body.
* @param color Parameter color inside query
* @param handler The handler for the asynchronous request
*/
public void queryFormExplodeArray(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/explode/array";
HttpRequest request = client.get(uri);
MultiMap requestCookies = MultiMap.caseInsensitiveMultiMap();
if (color != null)
this.addQueryArrayFormExplode("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 headerSimpleNoexplodeObject.
/**
* Call header_simple_noexplode_object with empty body.
* @param color Parameter color inside header
* @param handler The handler for the asynchronous request
*/
public void headerSimpleNoexplodeObject(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 = "/header/simple/noexplode/object";
HttpRequest request = client.get(uri);
MultiMap requestCookies = MultiMap.caseInsensitiveMultiMap();
if (color != null)
this.addHeaderObjectSimple("color", color, request);
this.renderAndAttachCookieHeader(request, requestCookies);
request.send(handler);
}
Aggregations