public class io.vertx.core.http.impl.VertxHttp2ClientUpgradeCodec extends java.lang.Object implements io.netty.handler.codec.http.HttpClientUpgradeHandler$UpgradeCodec
{
private static final java.util.List UPGRADE_HEADERS;
private final io.vertx.core.http.Http2Settings settings;
public void <init>(io.vertx.core.http.Http2Settings)
{
io.vertx.core.http.Http2Settings v;
io.vertx.core.http.impl.VertxHttp2ClientUpgradeCodec v;
v := @this: io.vertx.core.http.impl.VertxHttp2ClientUpgradeCodec;
v := @parameter: io.vertx.core.http.Http2Settings;
specialinvoke v.<java.lang.Object: void <init>()>();
v.<io.vertx.core.http.impl.VertxHttp2ClientUpgradeCodec: io.vertx.core.http.Http2Settings settings> = v;
return;
}
public java.lang.CharSequence protocol()
{
io.vertx.core.http.impl.VertxHttp2ClientUpgradeCodec v;
v := @this: io.vertx.core.http.impl.VertxHttp2ClientUpgradeCodec;
return "h2c";
}
public java.util.Collection setUpgradeHeaders(io.netty.channel.ChannelHandlerContext, io.netty.handler.codec.http.HttpRequest)
{
byte[] v, v;
io.netty.handler.codec.http.HttpHeaders v;
long v;
io.vertx.core.http.Http2Settings v;
java.lang.Iterable v;
io.netty.channel.ChannelHandlerContext v;
java.nio.charset.Charset v;
io.vertx.core.http.impl.VertxHttp2ClientUpgradeCodec v;
java.lang.String v;
boolean v;
io.netty.handler.codec.http.HttpRequest v;
java.lang.CharSequence v;
java.util.Iterator v;
char v;
java.util.Base64$Encoder v;
io.netty.handler.codec.http.Http2Settings v;
java.util.List v;
io.vertx.core.buffer.Buffer v;
java.lang.Object v, v;
v := @this: io.vertx.core.http.impl.VertxHttp2ClientUpgradeCodec;
v := @parameter: io.netty.channel.ChannelHandlerContext;
v := @parameter: io.netty.handler.codec.http.HttpRequest;
v = new io.netty.handler.codec.http.Http2Settings;
specialinvoke v.<io.netty.handler.codec.http.Http2Settings: void <init>()>();
v = v.<io.vertx.core.http.impl.VertxHttp2ClientUpgradeCodec: io.vertx.core.http.Http2Settings settings>;
staticinvoke <io.vertx.core.http.impl.HttpUtils: void fromVertxInitialSettings(boolean,io.vertx.core.http.Http2Settings,io.netty.handler.codec.http.Http2Settings)>(0, v, v);
v = staticinvoke <io.vertx.core.buffer.Buffer: io.vertx.core.buffer.Buffer buffer()>();
v = virtualinvoke v.<io.netty.handler.codec.http.Http2Settings: java.lang.Iterable entries()>();
v = interfaceinvoke v.<java.lang.Iterable: java.util.Iterator iterator()>();
label:
v = interfaceinvoke v.<java.util.Iterator: boolean hasNext()>();
if v == 0 goto label;
v = interfaceinvoke v.<java.util.Iterator: java.lang.Object next()>();
v = interfaceinvoke v.<io.netty.util.collection.CharObjectMap$PrimitiveEntry: char key()>();
interfaceinvoke v.<io.vertx.core.buffer.Buffer: io.vertx.core.buffer.Buffer appendUnsignedShort(int)>(v);
v = interfaceinvoke v.<io.netty.util.collection.CharObjectMap$PrimitiveEntry: java.lang.Object value()>();
v = virtualinvoke v.<java.lang.Long: long longValue()>();
interfaceinvoke v.<io.vertx.core.buffer.Buffer: io.vertx.core.buffer.Buffer appendUnsignedInt(long)>(v);
goto label;
label:
v = new java.lang.String;
v = staticinvoke <java.util.Base64: java.util.Base64$Encoder getUrlEncoder()>();
v = interfaceinvoke v.<io.vertx.core.buffer.Buffer: byte[] getBytes()>();
v = virtualinvoke v.<java.util.Base64$Encoder: byte[] encode(byte[])>(v);
v = <io.netty.util.CharsetUtil: java.nio.charset.Charset UTF_8>;
specialinvoke v.<java.lang.String: void <init>(byte[],java.nio.charset.Charset)>(v, v);
v = interfaceinvoke v.<io.netty.handler.codec.http.HttpRequest: io.netty.handler.codec.http.HttpHeaders headers()>();
v = <io.netty.handler.codec.http.Http2CodecUtil: java.lang.CharSequence HTTP_UPGRADE_SETTINGS_HEADER>;
virtualinvoke v.<io.netty.handler.codec.http.HttpHeaders: io.netty.handler.codec.http.HttpHeaders set(java.lang.CharSequence,java.lang.Object)>(v, v);
v = <io.vertx.core.http.impl.VertxHttp2ClientUpgradeCodec: java.util.List UPGRADE_HEADERS>;
return v;
}
public void upgradeTo(io.netty.channel.ChannelHandlerContext, io.netty.handler.codec.http.FullHttpResponse) throws java.lang.Exception
{
io.netty.channel.ChannelHandlerContext v;
io.netty.handler.codec.http.FullHttpResponse v;
io.vertx.core.http.impl.VertxHttp2ClientUpgradeCodec v;
v := @this: io.vertx.core.http.impl.VertxHttp2ClientUpgradeCodec;
v := @parameter: io.netty.channel.ChannelHandlerContext;
v := @parameter: io.netty.handler.codec.http.FullHttpResponse;
return;
}
static void <clinit>()
{
java.util.List v;
java.lang.CharSequence v;
v = <io.netty.handler.codec.http.Http2CodecUtil: java.lang.CharSequence HTTP_UPGRADE_SETTINGS_HEADER>;
v = staticinvoke <java.util.Collections: java.util.List singletonList(java.lang.Object)>(v);
<io.vertx.core.http.impl.VertxHttp2ClientUpgradeCodec: java.util.List UPGRADE_HEADERS> = v;
return;
}
}