public class io.netty.handler.codec.http.Http2ServerUpgradeCodec extends java.lang.Object implements io.netty.handler.codec.http.HttpServerUpgradeHandler$UpgradeCodec
{
private static final io.netty.util.internal.logging.InternalLogger logger;
private static final java.util.List REQUIRED_UPGRADE_HEADERS;
private static final io.netty.channel.ChannelHandler[] EMPTY_HANDLERS;
private final java.lang.String handlerName;
private final io.netty.handler.codec.http.Http2ConnectionHandler connectionHandler;
private final io.netty.channel.ChannelHandler[] handlers;
private final io.netty.handler.codec.http.Http2FrameReader frameReader;
private io.netty.handler.codec.http.Http2Settings settings;
public void <init>(io.netty.handler.codec.http.Http2ConnectionHandler)
{
io.netty.channel.ChannelHandler[] v;
io.netty.handler.codec.http.Http2ConnectionHandler v;
io.netty.handler.codec.http.Http2ServerUpgradeCodec v;
v := @this: io.netty.handler.codec.http.Http2ServerUpgradeCodec;
v := @parameter: io.netty.handler.codec.http.Http2ConnectionHandler;
v = <io.netty.handler.codec.http.Http2ServerUpgradeCodec: io.netty.channel.ChannelHandler[] EMPTY_HANDLERS>;
specialinvoke v.<io.netty.handler.codec.http.Http2ServerUpgradeCodec: void <init>(java.lang.String,io.netty.handler.codec.http.Http2ConnectionHandler,io.netty.channel.ChannelHandler[])>(null, v, v);
return;
}
public void <init>(io.netty.handler.codec.http.Http2MultiplexCodec)
{
io.netty.handler.codec.http.Http2MultiplexCodec v;
io.netty.channel.ChannelHandler[] v;
io.netty.handler.codec.http.Http2ServerUpgradeCodec v;
v := @this: io.netty.handler.codec.http.Http2ServerUpgradeCodec;
v := @parameter: io.netty.handler.codec.http.Http2MultiplexCodec;
v = <io.netty.handler.codec.http.Http2ServerUpgradeCodec: io.netty.channel.ChannelHandler[] EMPTY_HANDLERS>;
specialinvoke v.<io.netty.handler.codec.http.Http2ServerUpgradeCodec: void <init>(java.lang.String,io.netty.handler.codec.http.Http2ConnectionHandler,io.netty.channel.ChannelHandler[])>(null, v, v);
return;
}
public void <init>(java.lang.String, io.netty.handler.codec.http.Http2ConnectionHandler)
{
io.netty.handler.codec.http.Http2ServerUpgradeCodec v;
java.lang.String v;
io.netty.channel.ChannelHandler[] v;
io.netty.handler.codec.http.Http2ConnectionHandler v;
v := @this: io.netty.handler.codec.http.Http2ServerUpgradeCodec;
v := @parameter: java.lang.String;
v := @parameter: io.netty.handler.codec.http.Http2ConnectionHandler;
v = <io.netty.handler.codec.http.Http2ServerUpgradeCodec: io.netty.channel.ChannelHandler[] EMPTY_HANDLERS>;
specialinvoke v.<io.netty.handler.codec.http.Http2ServerUpgradeCodec: void <init>(java.lang.String,io.netty.handler.codec.http.Http2ConnectionHandler,io.netty.channel.ChannelHandler[])>(v, v, v);
return;
}
public void <init>(java.lang.String, io.netty.handler.codec.http.Http2MultiplexCodec)
{
io.netty.handler.codec.http.Http2MultiplexCodec v;
io.netty.handler.codec.http.Http2ServerUpgradeCodec v;
java.lang.String v;
io.netty.channel.ChannelHandler[] v;
v := @this: io.netty.handler.codec.http.Http2ServerUpgradeCodec;
v := @parameter: java.lang.String;
v := @parameter: io.netty.handler.codec.http.Http2MultiplexCodec;
v = <io.netty.handler.codec.http.Http2ServerUpgradeCodec: io.netty.channel.ChannelHandler[] EMPTY_HANDLERS>;
specialinvoke v.<io.netty.handler.codec.http.Http2ServerUpgradeCodec: void <init>(java.lang.String,io.netty.handler.codec.http.Http2ConnectionHandler,io.netty.channel.ChannelHandler[])>(v, v, v);
return;
}
public transient void <init>(io.netty.handler.codec.http.Http2FrameCodec, io.netty.channel.ChannelHandler[])
{
io.netty.handler.codec.http.Http2FrameCodec v;
io.netty.channel.ChannelHandler[] v;
io.netty.handler.codec.http.Http2ServerUpgradeCodec v;
v := @this: io.netty.handler.codec.http.Http2ServerUpgradeCodec;
v := @parameter: io.netty.handler.codec.http.Http2FrameCodec;
v := @parameter: io.netty.channel.ChannelHandler[];
specialinvoke v.<io.netty.handler.codec.http.Http2ServerUpgradeCodec: void <init>(java.lang.String,io.netty.handler.codec.http.Http2ConnectionHandler,io.netty.channel.ChannelHandler[])>(null, v, v);
return;
}
private transient void <init>(java.lang.String, io.netty.handler.codec.http.Http2ConnectionHandler, io.netty.channel.ChannelHandler[])
{
io.netty.handler.codec.http.Http2ServerUpgradeCodec v;
java.lang.String v;
io.netty.channel.ChannelHandler[] v;
io.netty.handler.codec.http.Http2ConnectionHandler v;
io.netty.handler.codec.http.DefaultHttp2FrameReader v;
v := @this: io.netty.handler.codec.http.Http2ServerUpgradeCodec;
v := @parameter: java.lang.String;
v := @parameter: io.netty.handler.codec.http.Http2ConnectionHandler;
v := @parameter: io.netty.channel.ChannelHandler[];
specialinvoke v.<java.lang.Object: void <init>()>();
v.<io.netty.handler.codec.http.Http2ServerUpgradeCodec: java.lang.String handlerName> = v;
v.<io.netty.handler.codec.http.Http2ServerUpgradeCodec: io.netty.handler.codec.http.Http2ConnectionHandler connectionHandler> = v;
v.<io.netty.handler.codec.http.Http2ServerUpgradeCodec: io.netty.channel.ChannelHandler[] handlers> = v;
v = new io.netty.handler.codec.http.DefaultHttp2FrameReader;
specialinvoke v.<io.netty.handler.codec.http.DefaultHttp2FrameReader: void <init>()>();
v.<io.netty.handler.codec.http.Http2ServerUpgradeCodec: io.netty.handler.codec.http.Http2FrameReader frameReader> = v;
return;
}
public java.util.Collection requiredUpgradeHeaders()
{
java.util.List v;
io.netty.handler.codec.http.Http2ServerUpgradeCodec v;
v := @this: io.netty.handler.codec.http.Http2ServerUpgradeCodec;
v = <io.netty.handler.codec.http.Http2ServerUpgradeCodec: java.util.List REQUIRED_UPGRADE_HEADERS>;
return v;
}
public boolean prepareUpgradeResponse(io.netty.channel.ChannelHandlerContext, io.netty.handler.codec.http.FullHttpRequest, io.netty.handler.codec.http.HttpHeaders)
{
java.lang.Throwable v;
io.netty.handler.codec.http.HttpHeaders v, v;
java.lang.CharSequence v, v;
java.lang.IllegalArgumentException v;
io.netty.handler.codec.http.FullHttpRequest v;
io.netty.handler.codec.http.Http2Settings v;
io.netty.channel.ChannelHandlerContext v;
java.util.List v;
io.netty.handler.codec.http.Http2ServerUpgradeCodec v;
io.netty.util.internal.logging.InternalLogger v;
int v;
java.lang.Object v;
java.lang.String v;
v := @this: io.netty.handler.codec.http.Http2ServerUpgradeCodec;
v := @parameter: io.netty.channel.ChannelHandlerContext;
v := @parameter: io.netty.handler.codec.http.FullHttpRequest;
v := @parameter: io.netty.handler.codec.http.HttpHeaders;
label:
v = interfaceinvoke v.<io.netty.handler.codec.http.FullHttpRequest: io.netty.handler.codec.http.HttpHeaders headers()>();
v = <io.netty.handler.codec.http.Http2CodecUtil: java.lang.CharSequence HTTP_UPGRADE_SETTINGS_HEADER>;
v = virtualinvoke v.<io.netty.handler.codec.http.HttpHeaders: java.util.List getAll(java.lang.CharSequence)>(v);
v = interfaceinvoke v.<java.util.List: int size()>();
if v == 1 goto label;
v = new java.lang.IllegalArgumentException;
v = <io.netty.handler.codec.http.Http2CodecUtil: java.lang.CharSequence HTTP_UPGRADE_SETTINGS_HEADER>;
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.CharSequence)>(v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("There must be 1 and only 1 \u header.");
specialinvoke v.<java.lang.IllegalArgumentException: void <init>(java.lang.String)>(v);
throw v;
label:
v = interfaceinvoke v.<java.util.List: java.lang.Object get(int)>(0);
v = specialinvoke v.<io.netty.handler.codec.http.Http2ServerUpgradeCodec: io.netty.handler.codec.http.Http2Settings decodeSettingsHeader(io.netty.channel.ChannelHandlerContext,java.lang.CharSequence)>(v, v);
v.<io.netty.handler.codec.http.Http2ServerUpgradeCodec: io.netty.handler.codec.http.Http2Settings settings> = v;
label:
return 1;
label:
v := @caughtexception;
v = <io.netty.handler.codec.http.Http2ServerUpgradeCodec: io.netty.util.internal.logging.InternalLogger logger>;
interfaceinvoke v.<io.netty.util.internal.logging.InternalLogger: void info(java.lang.String,java.lang.Throwable)>("Error during upgrade to HTTP/2", v);
return 0;
catch java.lang.Throwable from label to label with label;
}
public void upgradeTo(io.netty.channel.ChannelHandlerContext, io.netty.handler.codec.http.FullHttpRequest)
{
io.netty.channel.ChannelHandlerContext v, v;
io.netty.handler.codec.http.Http2Exception v;
int v, v;
java.lang.String v, v, v;
io.netty.channel.ChannelPipeline v, v, v;
io.netty.channel.ChannelHandler[] v, v, v;
io.netty.handler.codec.http.FullHttpRequest v;
io.netty.handler.codec.http.Http2ConnectionHandler v, v, v;
io.netty.handler.codec.http.Http2Settings v;
io.netty.handler.codec.http.Http2ServerUpgradeCodec v;
io.netty.channel.ChannelHandler v;
v := @this: io.netty.handler.codec.http.Http2ServerUpgradeCodec;
v := @parameter: io.netty.channel.ChannelHandlerContext;
v := @parameter: io.netty.handler.codec.http.FullHttpRequest;
label:
v = interfaceinvoke v.<io.netty.channel.ChannelHandlerContext: io.netty.channel.ChannelPipeline pipeline()>();
v = interfaceinvoke v.<io.netty.channel.ChannelHandlerContext: java.lang.String name()>();
v = v.<io.netty.handler.codec.http.Http2ServerUpgradeCodec: java.lang.String handlerName>;
v = v.<io.netty.handler.codec.http.Http2ServerUpgradeCodec: io.netty.handler.codec.http.Http2ConnectionHandler connectionHandler>;
interfaceinvoke v.<io.netty.channel.ChannelPipeline: io.netty.channel.ChannelPipeline addAfter(java.lang.String,java.lang.String,io.netty.channel.ChannelHandler)>(v, v, v);
v = v.<io.netty.handler.codec.http.Http2ServerUpgradeCodec: io.netty.channel.ChannelHandler[] handlers>;
if v == null goto label;
v = interfaceinvoke v.<io.netty.channel.ChannelHandlerContext: io.netty.channel.ChannelPipeline pipeline()>();
v = v.<io.netty.handler.codec.http.Http2ServerUpgradeCodec: io.netty.handler.codec.http.Http2ConnectionHandler connectionHandler>;
v = interfaceinvoke v.<io.netty.channel.ChannelPipeline: io.netty.channel.ChannelHandlerContext context(io.netty.channel.ChannelHandler)>(v);
v = interfaceinvoke v.<io.netty.channel.ChannelHandlerContext: java.lang.String name()>();
v = v.<io.netty.handler.codec.http.Http2ServerUpgradeCodec: io.netty.channel.ChannelHandler[] handlers>;
v = lengthof v;
v = v - 1;
label:
if v < 0 goto label;
v = interfaceinvoke v.<io.netty.channel.ChannelHandlerContext: io.netty.channel.ChannelPipeline pipeline()>();
v = v.<io.netty.handler.codec.http.Http2ServerUpgradeCodec: io.netty.channel.ChannelHandler[] handlers>;
v = v[v];
interfaceinvoke v.<io.netty.channel.ChannelPipeline: io.netty.channel.ChannelPipeline addAfter(java.lang.String,java.lang.String,io.netty.channel.ChannelHandler)>(v, null, v);
v = v - 1;
goto label;
label:
v = v.<io.netty.handler.codec.http.Http2ServerUpgradeCodec: io.netty.handler.codec.http.Http2ConnectionHandler connectionHandler>;
v = v.<io.netty.handler.codec.http.Http2ServerUpgradeCodec: io.netty.handler.codec.http.Http2Settings settings>;
virtualinvoke v.<io.netty.handler.codec.http.Http2ConnectionHandler: void onHttpServerUpgrade(io.netty.handler.codec.http.Http2Settings)>(v);
label:
goto label;
label:
v := @caughtexception;
interfaceinvoke v.<io.netty.channel.ChannelHandlerContext: io.netty.channel.ChannelHandlerContext fireExceptionCaught(java.lang.Throwable)>(v);
interfaceinvoke v.<io.netty.channel.ChannelHandlerContext: io.netty.channel.ChannelFuture close()>();
label:
return;
catch io.netty.handler.codec.http.Http2Exception from label to label with label;
}
private io.netty.handler.codec.http.Http2Settings decodeSettingsHeader(io.netty.channel.ChannelHandlerContext, java.lang.CharSequence) throws io.netty.handler.codec.http.Http2Exception
{
java.lang.Throwable v;
java.lang.CharSequence v;
java.nio.CharBuffer v;
io.netty.buffer.ByteBufAllocator v;
io.netty.handler.codec.http.Http2Settings v;
io.netty.channel.ChannelHandlerContext v;
io.netty.buffer.ByteBuf v, v, v;
java.nio.charset.Charset v;
io.netty.handler.codec.http.Http2ServerUpgradeCodec v;
io.netty.handler.codec.base.Base64Dialect v;
v := @this: io.netty.handler.codec.http.Http2ServerUpgradeCodec;
v := @parameter: io.netty.channel.ChannelHandlerContext;
v := @parameter: java.lang.CharSequence;
v = interfaceinvoke v.<io.netty.channel.ChannelHandlerContext: io.netty.buffer.ByteBufAllocator alloc()>();
v = staticinvoke <java.nio.CharBuffer: java.nio.CharBuffer wrap(java.lang.CharSequence)>(v);
v = <io.netty.util.CharsetUtil: java.nio.charset.Charset UTF_8>;
v = staticinvoke <io.netty.buffer.ByteBufUtil: io.netty.buffer.ByteBuf encodeString(io.netty.buffer.ByteBufAllocator,java.nio.CharBuffer,java.nio.charset.Charset)>(v, v, v);
label:
v = <io.netty.handler.codec.base.Base64Dialect: io.netty.handler.codec.base.Base64Dialect URL_SAFE>;
v = staticinvoke <io.netty.handler.codec.base.Base64: io.netty.buffer.ByteBuf decode(io.netty.buffer.ByteBuf,io.netty.handler.codec.base.Base64Dialect)>(v, v);
v = staticinvoke <io.netty.handler.codec.http.Http2ServerUpgradeCodec: io.netty.buffer.ByteBuf createSettingsFrame(io.netty.channel.ChannelHandlerContext,io.netty.buffer.ByteBuf)>(v, v);
v = specialinvoke v.<io.netty.handler.codec.http.Http2ServerUpgradeCodec: io.netty.handler.codec.http.Http2Settings decodeSettings(io.netty.channel.ChannelHandlerContext,io.netty.buffer.ByteBuf)>(v, v);
label:
virtualinvoke v.<io.netty.buffer.ByteBuf: boolean release()>();
return v;
label:
v := @caughtexception;
virtualinvoke v.<io.netty.buffer.ByteBuf: boolean release()>();
throw v;
catch java.lang.Throwable from label to label with label;
}
private io.netty.handler.codec.http.Http2Settings decodeSettings(io.netty.channel.ChannelHandlerContext, io.netty.buffer.ByteBuf) throws io.netty.handler.codec.http.Http2Exception
{
io.netty.handler.codec.http.Http2Settings v;
java.lang.Throwable v;
io.netty.channel.ChannelHandlerContext v;
io.netty.buffer.ByteBuf v;
io.netty.handler.codec.http.Http2FrameReader v;
io.netty.handler.codec.http.Http2ServerUpgradeCodec v;
io.netty.handler.codec.http.Http2ServerUpgradeCodec$1 v;
v := @this: io.netty.handler.codec.http.Http2ServerUpgradeCodec;
v := @parameter: io.netty.channel.ChannelHandlerContext;
v := @parameter: io.netty.buffer.ByteBuf;
label:
v = new io.netty.handler.codec.http.Http2Settings;
specialinvoke v.<io.netty.handler.codec.http.Http2Settings: void <init>()>();
v = v.<io.netty.handler.codec.http.Http2ServerUpgradeCodec: io.netty.handler.codec.http.Http2FrameReader frameReader>;
v = new io.netty.handler.codec.http.Http2ServerUpgradeCodec$1;
specialinvoke v.<io.netty.handler.codec.http.Http2ServerUpgradeCodec$1: void <init>(io.netty.handler.codec.http.Http2ServerUpgradeCodec,io.netty.handler.codec.http.Http2Settings)>(v, v);
interfaceinvoke v.<io.netty.handler.codec.http.Http2FrameReader: void readFrame(io.netty.channel.ChannelHandlerContext,io.netty.buffer.ByteBuf,io.netty.handler.codec.http.Http2FrameListener)>(v, v, v);
label:
virtualinvoke v.<io.netty.buffer.ByteBuf: boolean release()>();
return v;
label:
v := @caughtexception;
virtualinvoke v.<io.netty.buffer.ByteBuf: boolean release()>();
throw v;
catch java.lang.Throwable from label to label with label;
}
private static io.netty.buffer.ByteBuf createSettingsFrame(io.netty.channel.ChannelHandlerContext, io.netty.buffer.ByteBuf)
{
io.netty.handler.codec.http.Http2Flags v;
io.netty.buffer.ByteBufAllocator v;
io.netty.channel.ChannelHandlerContext v;
io.netty.buffer.ByteBuf v, v;
int v, v, v;
v := @parameter: io.netty.channel.ChannelHandlerContext;
v := @parameter: io.netty.buffer.ByteBuf;
v = interfaceinvoke v.<io.netty.channel.ChannelHandlerContext: io.netty.buffer.ByteBufAllocator alloc()>();
v = virtualinvoke v.<io.netty.buffer.ByteBuf: int readableBytes()>();
v = 9 + v;
v = interfaceinvoke v.<io.netty.buffer.ByteBufAllocator: io.netty.buffer.ByteBuf buffer(int)>(v);
v = virtualinvoke v.<io.netty.buffer.ByteBuf: int readableBytes()>();
v = new io.netty.handler.codec.http.Http2Flags;
specialinvoke v.<io.netty.handler.codec.http.Http2Flags: void <init>()>();
staticinvoke <io.netty.handler.codec.http.Http2CodecUtil: void writeFrameHeader(io.netty.buffer.ByteBuf,int,byte,io.netty.handler.codec.http.Http2Flags,int)>(v, v, 4, v, 0);
virtualinvoke v.<io.netty.buffer.ByteBuf: io.netty.buffer.ByteBuf writeBytes(io.netty.buffer.ByteBuf)>(v);
virtualinvoke v.<io.netty.buffer.ByteBuf: boolean release()>();
return v;
}
static void <clinit>()
{
java.util.List v;
java.lang.CharSequence v;
io.netty.util.internal.logging.InternalLogger v;
io.netty.channel.ChannelHandler[] v;
v = staticinvoke <io.netty.util.internal.logging.InternalLoggerFactory: io.netty.util.internal.logging.InternalLogger getInstance(java.lang.Class)>(class "Lio/netty/handler/codec/http2/Http2ServerUpgradeCodec;");
<io.netty.handler.codec.http.Http2ServerUpgradeCodec: io.netty.util.internal.logging.InternalLogger logger> = 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.netty.handler.codec.http.Http2ServerUpgradeCodec: java.util.List REQUIRED_UPGRADE_HEADERS> = v;
v = newarray (io.netty.channel.ChannelHandler)[0];
<io.netty.handler.codec.http.Http2ServerUpgradeCodec: io.netty.channel.ChannelHandler[] EMPTY_HANDLERS> = v;
return;
}
}