All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.vertx.groovy.ext.web.client.HttpResponse_GroovyExtension Maven / Gradle / Ivy

package io.vertx.groovy.ext.web.client;
public class HttpResponse_GroovyExtension {
  public static java.lang.Object body(io.vertx.ext.web.client.HttpResponse j_receiver) {
    return io.vertx.groovy.ext.web.client.internal.ConversionHelper.wrap(j_receiver.body());
  }
  public static java.util.Map bodyAsJsonObject(io.vertx.ext.web.client.HttpResponse j_receiver) {
    return io.vertx.groovy.ext.web.client.internal.ConversionHelper.fromJsonObject(j_receiver.bodyAsJsonObject());
  }
  public static java.util.List bodyAsJsonArray(io.vertx.ext.web.client.HttpResponse j_receiver) {
    return io.vertx.groovy.ext.web.client.internal.ConversionHelper.fromJsonArray(j_receiver.bodyAsJsonArray());
  }
  public static java.lang.Object bodyAsJson(io.vertx.ext.web.client.HttpResponse j_receiver, java.lang.Class type) {
    return io.vertx.groovy.ext.web.client.internal.ConversionHelper.wrap(j_receiver.bodyAsJson(type));
  }
}