public class io.netty.handler.codec.http.DefaultHttp2HeadersDecoder extends java.lang.Object implements io.netty.handler.codec.http.Http2HeadersDecoder, io.netty.handler.codec.http.Http2HeadersDecoder$Configuration
{
private static final float HEADERS_COUNT_WEIGHT_NEW;
private static final float HEADERS_COUNT_WEIGHT_HISTORICAL;
private final io.netty.handler.codec.http.HpackDecoder hpackDecoder;
private final boolean validateHeaders;
private final boolean validateHeaderValues;
private long maxHeaderListSizeGoAway;
private float headerArraySizeAccumulator;
public void <init>()
{
io.netty.handler.codec.http.DefaultHttp2HeadersDecoder v;
v := @this: io.netty.handler.codec.http.DefaultHttp2HeadersDecoder;
specialinvoke v.<io.netty.handler.codec.http.DefaultHttp2HeadersDecoder: void <init>(boolean)>(1);
return;
}
public void <init>(boolean)
{
io.netty.handler.codec.http.DefaultHttp2HeadersDecoder v;
boolean v;
v := @this: io.netty.handler.codec.http.DefaultHttp2HeadersDecoder;
v := @parameter: boolean;
specialinvoke v.<io.netty.handler.codec.http.DefaultHttp2HeadersDecoder: void <init>(boolean,long)>(v, 8192L);
return;
}
public void <init>(boolean, boolean)
{
io.netty.handler.codec.http.DefaultHttp2HeadersDecoder v;
boolean v, v;
v := @this: io.netty.handler.codec.http.DefaultHttp2HeadersDecoder;
v := @parameter: boolean;
v := @parameter: boolean;
specialinvoke v.<io.netty.handler.codec.http.DefaultHttp2HeadersDecoder: void <init>(boolean,boolean,long)>(v, v, 8192L);
return;
}
public void <init>(boolean, long)
{
io.netty.handler.codec.http.HpackDecoder v;
io.netty.handler.codec.http.DefaultHttp2HeadersDecoder v;
long v;
boolean v;
v := @this: io.netty.handler.codec.http.DefaultHttp2HeadersDecoder;
v := @parameter: boolean;
v := @parameter: long;
v = new io.netty.handler.codec.http.HpackDecoder;
specialinvoke v.<io.netty.handler.codec.http.HpackDecoder: void <init>(long)>(v);
specialinvoke v.<io.netty.handler.codec.http.DefaultHttp2HeadersDecoder: void <init>(boolean,boolean,io.netty.handler.codec.http.HpackDecoder)>(v, 0, v);
return;
}
public void <init>(boolean, boolean, long)
{
io.netty.handler.codec.http.HpackDecoder v;
io.netty.handler.codec.http.DefaultHttp2HeadersDecoder v;
long v;
boolean v, v;
v := @this: io.netty.handler.codec.http.DefaultHttp2HeadersDecoder;
v := @parameter: boolean;
v := @parameter: boolean;
v := @parameter: long;
v = new io.netty.handler.codec.http.HpackDecoder;
specialinvoke v.<io.netty.handler.codec.http.HpackDecoder: void <init>(long)>(v);
specialinvoke v.<io.netty.handler.codec.http.DefaultHttp2HeadersDecoder: void <init>(boolean,boolean,io.netty.handler.codec.http.HpackDecoder)>(v, v, v);
return;
}
public void <init>(boolean, long, int)
{
io.netty.handler.codec.http.HpackDecoder v;
int v;
io.netty.handler.codec.http.DefaultHttp2HeadersDecoder v;
long v;
boolean v;
v := @this: io.netty.handler.codec.http.DefaultHttp2HeadersDecoder;
v := @parameter: boolean;
v := @parameter: long;
v := @parameter: int;
v = new io.netty.handler.codec.http.HpackDecoder;
specialinvoke v.<io.netty.handler.codec.http.HpackDecoder: void <init>(long)>(v);
specialinvoke v.<io.netty.handler.codec.http.DefaultHttp2HeadersDecoder: void <init>(boolean,boolean,io.netty.handler.codec.http.HpackDecoder)>(v, 0, v);
return;
}
void <init>(boolean, boolean, io.netty.handler.codec.http.HpackDecoder)
{
io.netty.handler.codec.http.HpackDecoder v;
io.netty.handler.codec.http.DefaultHttp2HeadersDecoder v;
java.lang.Object v;
long v, v;
boolean v, v;
v := @this: io.netty.handler.codec.http.DefaultHttp2HeadersDecoder;
v := @parameter: boolean;
v := @parameter: boolean;
v := @parameter: io.netty.handler.codec.http.HpackDecoder;
specialinvoke v.<java.lang.Object: void <init>()>();
v.<io.netty.handler.codec.http.DefaultHttp2HeadersDecoder: float headerArraySizeAccumulator> = 8.0F;
v = staticinvoke <io.netty.util.internal.ObjectUtil: java.lang.Object checkNotNull(java.lang.Object,java.lang.String)>(v, "hpackDecoder");
v.<io.netty.handler.codec.http.DefaultHttp2HeadersDecoder: io.netty.handler.codec.http.HpackDecoder hpackDecoder> = v;
v.<io.netty.handler.codec.http.DefaultHttp2HeadersDecoder: boolean validateHeaders> = v;
v.<io.netty.handler.codec.http.DefaultHttp2HeadersDecoder: boolean validateHeaderValues> = v;
v = virtualinvoke v.<io.netty.handler.codec.http.HpackDecoder: long getMaxHeaderListSize()>();
v = staticinvoke <io.netty.handler.codec.http.Http2CodecUtil: long calculateMaxHeaderListSizeGoAway(long)>(v);
v.<io.netty.handler.codec.http.DefaultHttp2HeadersDecoder: long maxHeaderListSizeGoAway> = v;
return;
}
public void maxHeaderTableSize(long) throws io.netty.handler.codec.http.Http2Exception
{
io.netty.handler.codec.http.DefaultHttp2HeadersDecoder v;
long v;
io.netty.handler.codec.http.HpackDecoder v;
v := @this: io.netty.handler.codec.http.DefaultHttp2HeadersDecoder;
v := @parameter: long;
v = v.<io.netty.handler.codec.http.DefaultHttp2HeadersDecoder: io.netty.handler.codec.http.HpackDecoder hpackDecoder>;
virtualinvoke v.<io.netty.handler.codec.http.HpackDecoder: void setMaxHeaderTableSize(long)>(v);
return;
}
public long maxHeaderTableSize()
{
io.netty.handler.codec.http.DefaultHttp2HeadersDecoder v;
long v;
io.netty.handler.codec.http.HpackDecoder v;
v := @this: io.netty.handler.codec.http.DefaultHttp2HeadersDecoder;
v = v.<io.netty.handler.codec.http.DefaultHttp2HeadersDecoder: io.netty.handler.codec.http.HpackDecoder hpackDecoder>;
v = virtualinvoke v.<io.netty.handler.codec.http.HpackDecoder: long getMaxHeaderTableSize()>();
return v;
}
public void maxHeaderListSize(long, long) throws io.netty.handler.codec.http.Http2Exception
{
java.lang.Object[] v;
io.netty.handler.codec.http.HpackDecoder v;
io.netty.handler.codec.http.DefaultHttp2HeadersDecoder v;
long v, v;
byte v, v;
java.lang.Long v, v;
io.netty.handler.codec.http.Http2Exception v;
io.netty.handler.codec.http.Http2Error v;
v := @this: io.netty.handler.codec.http.DefaultHttp2HeadersDecoder;
v := @parameter: long;
v := @parameter: long;
v = v cmp v;
if v < 0 goto label;
v = v cmp 0L;
if v >= 0 goto label;
label:
v = <io.netty.handler.codec.http.Http2Error: io.netty.handler.codec.http.Http2Error INTERNAL_ERROR>;
v = newarray (java.lang.Object)[2];
v = staticinvoke <java.lang.Long: java.lang.Long valueOf(long)>(v);
v[0] = v;
v = staticinvoke <java.lang.Long: java.lang.Long valueOf(long)>(v);
v[1] = v;
v = staticinvoke <io.netty.handler.codec.http.Http2Exception: io.netty.handler.codec.http.Http2Exception connectionError(io.netty.handler.codec.http.Http2Error,java.lang.String,java.lang.Object[])>(v, "Header List Size GO_AWAY %d must be non-negative and >= %d", v);
throw v;
label:
v = v.<io.netty.handler.codec.http.DefaultHttp2HeadersDecoder: io.netty.handler.codec.http.HpackDecoder hpackDecoder>;
virtualinvoke v.<io.netty.handler.codec.http.HpackDecoder: void setMaxHeaderListSize(long)>(v);
v.<io.netty.handler.codec.http.DefaultHttp2HeadersDecoder: long maxHeaderListSizeGoAway> = v;
return;
}
public long maxHeaderListSize()
{
io.netty.handler.codec.http.DefaultHttp2HeadersDecoder v;
long v;
io.netty.handler.codec.http.HpackDecoder v;
v := @this: io.netty.handler.codec.http.DefaultHttp2HeadersDecoder;
v = v.<io.netty.handler.codec.http.DefaultHttp2HeadersDecoder: io.netty.handler.codec.http.HpackDecoder hpackDecoder>;
v = virtualinvoke v.<io.netty.handler.codec.http.HpackDecoder: long getMaxHeaderListSize()>();
return v;
}
public long maxHeaderListSizeGoAway()
{
io.netty.handler.codec.http.DefaultHttp2HeadersDecoder v;
long v;
v := @this: io.netty.handler.codec.http.DefaultHttp2HeadersDecoder;
v = v.<io.netty.handler.codec.http.DefaultHttp2HeadersDecoder: long maxHeaderListSizeGoAway>;
return v;
}
public io.netty.handler.codec.http.Http2HeadersDecoder$Configuration configuration()
{
io.netty.handler.codec.http.DefaultHttp2HeadersDecoder v;
v := @this: io.netty.handler.codec.http.DefaultHttp2HeadersDecoder;
return v;
}
public io.netty.handler.codec.http.Http2Headers decodeHeaders(int, io.netty.buffer.ByteBuf) throws io.netty.handler.codec.http.Http2Exception
{
java.lang.Throwable v;
java.lang.Object[] v;
io.netty.handler.codec.http.HpackDecoder v;
io.netty.buffer.ByteBuf v;
io.netty.handler.codec.http.Http2Exception v, v;
int v, v;
java.lang.String v;
boolean v;
io.netty.handler.codec.http.DefaultHttp2HeadersDecoder v;
io.netty.handler.codec.http.Http2Headers v;
io.netty.handler.codec.http.Http2Error v;
float v, v, v, v;
v := @this: io.netty.handler.codec.http.DefaultHttp2HeadersDecoder;
v := @parameter: int;
v := @parameter: io.netty.buffer.ByteBuf;
label:
v = virtualinvoke v.<io.netty.handler.codec.http.DefaultHttp2HeadersDecoder: io.netty.handler.codec.http.Http2Headers newHeaders()>();
v = v.<io.netty.handler.codec.http.DefaultHttp2HeadersDecoder: io.netty.handler.codec.http.HpackDecoder hpackDecoder>;
v = v.<io.netty.handler.codec.http.DefaultHttp2HeadersDecoder: boolean validateHeaders>;
virtualinvoke v.<io.netty.handler.codec.http.HpackDecoder: void decode(int,io.netty.buffer.ByteBuf,io.netty.handler.codec.http.Http2Headers,boolean)>(v, v, v, v);
v = interfaceinvoke v.<io.netty.handler.codec.http.Http2Headers: int size()>();
v = 0.2F * v;
v = v.<io.netty.handler.codec.http.DefaultHttp2HeadersDecoder: float headerArraySizeAccumulator>;
v = 0.8F * v;
v = v + v;
v.<io.netty.handler.codec.http.DefaultHttp2HeadersDecoder: float headerArraySizeAccumulator> = v;
label:
return v;
label:
v := @caughtexception;
throw v;
label:
v := @caughtexception;
v = <io.netty.handler.codec.http.Http2Error: io.netty.handler.codec.http.Http2Error COMPRESSION_ERROR>;
v = newarray (java.lang.Object)[1];
v = virtualinvoke v.<java.lang.Throwable: java.lang.String getMessage()>();
v[0] = v;
v = staticinvoke <io.netty.handler.codec.http.Http2Exception: io.netty.handler.codec.http.Http2Exception connectionError(io.netty.handler.codec.http.Http2Error,java.lang.Throwable,java.lang.String,java.lang.Object[])>(v, v, "Error decoding headers: %s", v);
throw v;
catch io.netty.handler.codec.http.Http2Exception from label to label with label;
catch java.lang.Throwable from label to label with label;
}
protected final int numberOfHeadersGuess()
{
float v;
io.netty.handler.codec.http.DefaultHttp2HeadersDecoder v;
v := @this: io.netty.handler.codec.http.DefaultHttp2HeadersDecoder;
v = v.<io.netty.handler.codec.http.DefaultHttp2HeadersDecoder: float headerArraySizeAccumulator>;
return v;
}
protected final boolean validateHeaders()
{
io.netty.handler.codec.http.DefaultHttp2HeadersDecoder v;
boolean v;
v := @this: io.netty.handler.codec.http.DefaultHttp2HeadersDecoder;
v = v.<io.netty.handler.codec.http.DefaultHttp2HeadersDecoder: boolean validateHeaders>;
return v;
}
protected boolean validateHeaderValues()
{
io.netty.handler.codec.http.DefaultHttp2HeadersDecoder v;
boolean v;
v := @this: io.netty.handler.codec.http.DefaultHttp2HeadersDecoder;
v = v.<io.netty.handler.codec.http.DefaultHttp2HeadersDecoder: boolean validateHeaderValues>;
return v;
}
protected io.netty.handler.codec.http.Http2Headers newHeaders()
{
float v;
io.netty.handler.codec.http.DefaultHttp2HeadersDecoder v;
io.netty.handler.codec.http.DefaultHttp2Headers v;
boolean v, v;
v := @this: io.netty.handler.codec.http.DefaultHttp2HeadersDecoder;
v = new io.netty.handler.codec.http.DefaultHttp2Headers;
v = v.<io.netty.handler.codec.http.DefaultHttp2HeadersDecoder: boolean validateHeaders>;
v = v.<io.netty.handler.codec.http.DefaultHttp2HeadersDecoder: boolean validateHeaderValues>;
v = v.<io.netty.handler.codec.http.DefaultHttp2HeadersDecoder: float headerArraySizeAccumulator>;
specialinvoke v.<io.netty.handler.codec.http.DefaultHttp2Headers: void <init>(boolean,boolean,int)>(v, v, v);
return v;
}
}