public class io.vertx.ext.web.client.impl.HttpResponseImpl extends java.lang.Object implements io.vertx.ext.web.client.HttpResponse
{
private final io.vertx.core.http.HttpVersion version;
private final int statusCode;
private final java.lang.String statusMessage;
private final io.vertx.core.MultiMap headers;
private final io.vertx.core.MultiMap trailers;
private final java.util.List cookies;
private final java.lang.Object body;
private final java.util.List redirects;
public void <init>(io.vertx.core.http.HttpVersion, int, java.lang.String, io.vertx.core.MultiMap, io.vertx.core.MultiMap, java.util.List, java.lang.Object, java.util.List)
{
io.vertx.core.MultiMap v, v;
io.vertx.ext.web.client.impl.HttpResponseImpl v;
java.util.List v, v;
io.vertx.core.http.HttpVersion v;
int v;
java.lang.Object v;
java.lang.String v;
v := @this: io.vertx.ext.web.client.impl.HttpResponseImpl;
v := @parameter: io.vertx.core.http.HttpVersion;
v := @parameter: int;
v := @parameter: java.lang.String;
v := @parameter: io.vertx.core.MultiMap;
v := @parameter: io.vertx.core.MultiMap;
v := @parameter: java.util.List;
v := @parameter: java.lang.Object;
v := @parameter: java.util.List;
specialinvoke v.<java.lang.Object: void <init>()>();
v.<io.vertx.ext.web.client.impl.HttpResponseImpl: io.vertx.core.http.HttpVersion version> = v;
v.<io.vertx.ext.web.client.impl.HttpResponseImpl: int statusCode> = v;
v.<io.vertx.ext.web.client.impl.HttpResponseImpl: java.lang.String statusMessage> = v;
v.<io.vertx.ext.web.client.impl.HttpResponseImpl: io.vertx.core.MultiMap headers> = v;
v.<io.vertx.ext.web.client.impl.HttpResponseImpl: io.vertx.core.MultiMap trailers> = v;
v.<io.vertx.ext.web.client.impl.HttpResponseImpl: java.util.List cookies> = v;
v.<io.vertx.ext.web.client.impl.HttpResponseImpl: java.lang.Object body> = v;
v.<io.vertx.ext.web.client.impl.HttpResponseImpl: java.util.List redirects> = v;
return;
}
public io.vertx.core.http.HttpVersion version()
{
io.vertx.ext.web.client.impl.HttpResponseImpl v;
io.vertx.core.http.HttpVersion v;
v := @this: io.vertx.ext.web.client.impl.HttpResponseImpl;
v = v.<io.vertx.ext.web.client.impl.HttpResponseImpl: io.vertx.core.http.HttpVersion version>;
return v;
}
public int statusCode()
{
int v;
io.vertx.ext.web.client.impl.HttpResponseImpl v;
v := @this: io.vertx.ext.web.client.impl.HttpResponseImpl;
v = v.<io.vertx.ext.web.client.impl.HttpResponseImpl: int statusCode>;
return v;
}
public java.lang.String statusMessage()
{
io.vertx.ext.web.client.impl.HttpResponseImpl v;
java.lang.String v;
v := @this: io.vertx.ext.web.client.impl.HttpResponseImpl;
v = v.<io.vertx.ext.web.client.impl.HttpResponseImpl: java.lang.String statusMessage>;
return v;
}
public java.lang.String getHeader(java.lang.String)
{
io.vertx.ext.web.client.impl.HttpResponseImpl v;
io.vertx.core.MultiMap v;
java.lang.String v, v;
v := @this: io.vertx.ext.web.client.impl.HttpResponseImpl;
v := @parameter: java.lang.String;
v = v.<io.vertx.ext.web.client.impl.HttpResponseImpl: io.vertx.core.MultiMap headers>;
v = interfaceinvoke v.<io.vertx.core.MultiMap: java.lang.String get(java.lang.String)>(v);
return v;
}
public io.vertx.core.MultiMap trailers()
{
io.vertx.core.MultiMap v;
io.vertx.ext.web.client.impl.HttpResponseImpl v;
v := @this: io.vertx.ext.web.client.impl.HttpResponseImpl;
v = v.<io.vertx.ext.web.client.impl.HttpResponseImpl: io.vertx.core.MultiMap trailers>;
return v;
}
public java.lang.String getTrailer(java.lang.String)
{
io.vertx.ext.web.client.impl.HttpResponseImpl v;
io.vertx.core.MultiMap v;
java.lang.String v, v;
v := @this: io.vertx.ext.web.client.impl.HttpResponseImpl;
v := @parameter: java.lang.String;
v = v.<io.vertx.ext.web.client.impl.HttpResponseImpl: io.vertx.core.MultiMap trailers>;
v = interfaceinvoke v.<io.vertx.core.MultiMap: java.lang.String get(java.lang.String)>(v);
return v;
}
public java.util.List cookies()
{
io.vertx.ext.web.client.impl.HttpResponseImpl v;
java.util.List v;
v := @this: io.vertx.ext.web.client.impl.HttpResponseImpl;
v = v.<io.vertx.ext.web.client.impl.HttpResponseImpl: java.util.List cookies>;
return v;
}
public io.vertx.core.MultiMap headers()
{
io.vertx.core.MultiMap v;
io.vertx.ext.web.client.impl.HttpResponseImpl v;
v := @this: io.vertx.ext.web.client.impl.HttpResponseImpl;
v = v.<io.vertx.ext.web.client.impl.HttpResponseImpl: io.vertx.core.MultiMap headers>;
return v;
}
public java.lang.Object body()
{
io.vertx.ext.web.client.impl.HttpResponseImpl v;
java.lang.Object v;
v := @this: io.vertx.ext.web.client.impl.HttpResponseImpl;
v = v.<io.vertx.ext.web.client.impl.HttpResponseImpl: java.lang.Object body>;
return v;
}
public io.vertx.core.buffer.Buffer bodyAsBuffer()
{
io.vertx.ext.web.client.impl.HttpResponseImpl v;
java.lang.Object v, v;
boolean v;
v := @this: io.vertx.ext.web.client.impl.HttpResponseImpl;
v = v.<io.vertx.ext.web.client.impl.HttpResponseImpl: java.lang.Object body>;
v = v instanceof io.vertx.core.buffer.Buffer;
if v == 0 goto label;
v = v.<io.vertx.ext.web.client.impl.HttpResponseImpl: java.lang.Object body>;
goto label;
label:
v = null;
label:
return v;
}
public java.util.List followedRedirects()
{
io.vertx.ext.web.client.impl.HttpResponseImpl v;
java.util.List v;
v := @this: io.vertx.ext.web.client.impl.HttpResponseImpl;
v = v.<io.vertx.ext.web.client.impl.HttpResponseImpl: java.util.List redirects>;
return v;
}
public io.vertx.core.json.JsonArray bodyAsJsonArray()
{
io.vertx.ext.web.client.impl.HttpResponseImpl v;
io.vertx.core.buffer.Buffer v;
java.lang.Object v;
java.util.function.Function v;
v := @this: io.vertx.ext.web.client.impl.HttpResponseImpl;
v = virtualinvoke v.<io.vertx.ext.web.client.impl.HttpResponseImpl: io.vertx.core.buffer.Buffer bodyAsBuffer()>();
if v == null goto label;
v = <io.vertx.ext.web.codec.impl.BodyCodecImpl: java.util.function.Function JSON_ARRAY_DECODER>;
v = interfaceinvoke v.<java.util.function.Function: java.lang.Object apply(java.lang.Object)>(v);
goto label;
label:
v = null;
label:
return v;
}
}