use of io.vertx.ext.web.client.HttpRequest in project vertx-web by vert-x3.
the class ApiClient method cookieFormExplodeString.
/**
* Call cookie_form_explode_string with empty body.
* @param color Parameter color inside cookie
* @param handler The handler for the asynchronous request
*/
public void cookieFormExplodeString(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/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 queryFormNoexplodeEmpty.
/**
* Call query_form_noexplode_empty with empty body.
* @param color Parameter color inside query
* @param handler The handler for the asynchronous request
*/
public void queryFormNoexplodeEmpty(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/empty";
HttpRequest request = client.get(uri);
MultiMap requestCookies = MultiMap.caseInsensitiveMultiMap();
if (color != null)
this.addQueryParam("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 cookieFormNoexplodeEmpty.
/**
* Call cookie_form_noexplode_empty with empty body.
* @param color Parameter color inside cookie
* @param handler The handler for the asynchronous request
*/
public void cookieFormNoexplodeEmpty(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/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 queryFormExplodeString.
/**
* Call query_form_explode_string with empty body.
* @param color Parameter color inside query
* @param handler The handler for the asynchronous request
*/
public void queryFormExplodeString(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/explode/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);
}
use of io.vertx.ext.web.client.HttpRequest in project vertx-web by vert-x3.
the class ApiClient method queryPipeDelimitedNoexplodeObject.
/**
* Call query_pipeDelimited_noexplode_object with empty body.
* @param color Parameter color inside query
* @param handler The handler for the asynchronous request
*/
public void queryPipeDelimitedNoexplodeObject(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/pipeDelimited/noexplode/object";
HttpRequest request = client.get(uri);
MultiMap requestCookies = MultiMap.caseInsensitiveMultiMap();
if (color != null)
this.addQueryObjectPipeDelimited("color", color, request);
this.renderAndAttachCookieHeader(request, requestCookies);
request.send(handler);
}
Aggregations