public class org.apache.hc.core.http.impl.DefaultH2ResponseConverter extends java.lang.Object implements org.apache.hc.core.http.H2MessageConverter
{
public static final org.apache.hc.core.http.impl.DefaultH2ResponseConverter INSTANCE;
public void <init>()
{
org.apache.hc.core.http.impl.DefaultH2ResponseConverter v;
v := @this: org.apache.hc.core.http.impl.DefaultH2ResponseConverter;
specialinvoke v.<java.lang.Object: void <init>()>();
return;
}
public org.apache.hc.core.http.HttpResponse convert(java.util.List) throws org.apache.hc.core.http.HttpException
{
boolean v, v, v, v, v, v;
java.util.List v;
org.apache.hc.core.http.impl.DefaultH2ResponseConverter v;
java.lang.Object[] v, v, v, v, v;
java.util.ArrayList v;
org.apache.hc.core.http.HttpVersion v;
int v, v, v, v, v, v, v;
java.lang.String v, v, v, v, v, v;
org.apache.hc.core.http.ProtocolException v, v, v, v, v, v, v;
char v;
java.lang.NumberFormatException v;
org.apache.hc.core.http.message.BasicHttpResponse v;
java.lang.Object v, v;
v := @this: org.apache.hc.core.http.impl.DefaultH2ResponseConverter;
v := @parameter: java.util.List;
v = null;
v = new java.util.ArrayList;
specialinvoke v.<java.util.ArrayList: void <init>()>();
v = 0;
label:
v = interfaceinvoke v.<java.util.List: int size()>();
if v >= v goto label;
v = interfaceinvoke v.<java.util.List: java.lang.Object get(int)>(v);
v = interfaceinvoke v.<org.apache.hc.core.http.Header: java.lang.String getName()>();
v = interfaceinvoke v.<org.apache.hc.core.http.Header: java.lang.String getValue()>();
v = 0;
label:
v = virtualinvoke v.<java.lang.String: int length()>();
if v >= v goto label;
v = virtualinvoke v.<java.lang.String: char charAt(int)>(v);
v = staticinvoke <java.lang.Character: boolean isAlphabetic(int)>(v);
if v == 0 goto label;
v = staticinvoke <java.lang.Character: boolean isLowerCase(char)>(v);
if v != 0 goto label;
v = new org.apache.hc.core.http.ProtocolException;
v = newarray (java.lang.Object)[1];
v[0] = v;
specialinvoke v.<org.apache.hc.core.http.ProtocolException: void <init>(java.lang.String,java.lang.Object[])>("Header name \'%s\' is invalid (header name contains uppercase characters)", v);
throw v;
label:
v = v + 1;
goto label;
label:
v = virtualinvoke v.<java.lang.String: boolean startsWith(java.lang.String)>(":");
if v == 0 goto label;
v = interfaceinvoke v.<java.util.List: boolean isEmpty()>();
if v != 0 goto label;
v = new org.apache.hc.core.http.ProtocolException;
specialinvoke v.<org.apache.hc.core.http.ProtocolException: void <init>(java.lang.String)>("Invalid sequence of headers (pseudo-headers must precede message headers)");
throw v;
label:
v = virtualinvoke v.<java.lang.String: boolean equals(java.lang.Object)>(":status");
if v == 0 goto label;
if v == null goto label;
v = new org.apache.hc.core.http.ProtocolException;
v = newarray (java.lang.Object)[1];
v[0] = v;
specialinvoke v.<org.apache.hc.core.http.ProtocolException: void <init>(java.lang.String,java.lang.Object[])>("Multiple \'%s\' response headers are illegal", v);
throw v;
label:
v = v;
goto label;
label:
v = new org.apache.hc.core.http.ProtocolException;
v = newarray (java.lang.Object)[1];
v[0] = v;
specialinvoke v.<org.apache.hc.core.http.ProtocolException: void <init>(java.lang.String,java.lang.Object[])>("Unsupported response header \'%s\'", v);
throw v;
label:
v = virtualinvoke v.<java.lang.String: boolean equalsIgnoreCase(java.lang.String)>("Connection");
if v == 0 goto label;
v = new org.apache.hc.core.http.ProtocolException;
v = newarray (java.lang.Object)[2];
v = interfaceinvoke v.<org.apache.hc.core.http.Header: java.lang.String getName()>();
v[0] = v;
v = interfaceinvoke v.<org.apache.hc.core.http.Header: java.lang.String getValue()>();
v[1] = v;
specialinvoke v.<org.apache.hc.core.http.ProtocolException: void <init>(java.lang.String,java.lang.Object[])>("Header \'%s: %s\' is illegal for HTTP/2 messages", v);
throw v;
label:
interfaceinvoke v.<java.util.List: boolean add(java.lang.Object)>(v);
label:
v = v + 1;
goto label;
label:
if v != null goto label;
v = new org.apache.hc.core.http.ProtocolException;
v = newarray (java.lang.Object)[1];
v[0] = ":status";
specialinvoke v.<org.apache.hc.core.http.ProtocolException: void <init>(java.lang.String,java.lang.Object[])>("Mandatory response header \'%s\' not found", v);
throw v;
label:
v = staticinvoke <java.lang.Integer: int parseInt(java.lang.String)>(v);
label:
goto label;
label:
v := @caughtexception;
v = new org.apache.hc.core.http.ProtocolException;
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.String)>(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[])>("Invalid response status: \u0001");
specialinvoke v.<org.apache.hc.core.http.ProtocolException: void <init>(java.lang.String)>(v);
throw v;
label:
v = new org.apache.hc.core.http.message.BasicHttpResponse;
specialinvoke v.<org.apache.hc.core.http.message.BasicHttpResponse: void <init>(int,java.lang.String)>(v, null);
v = <org.apache.hc.core.http.HttpVersion: org.apache.hc.core.http.HttpVersion HTTP_2>;
interfaceinvoke v.<org.apache.hc.core.http.HttpResponse: void setVersion(org.apache.hc.core.http.ProtocolVersion)>(v);
v = 0;
label:
v = interfaceinvoke v.<java.util.List: int size()>();
if v >= v goto label;
v = interfaceinvoke v.<java.util.List: java.lang.Object get(int)>(v);
interfaceinvoke v.<org.apache.hc.core.http.HttpResponse: void addHeader(org.apache.hc.core.http.Header)>(v);
v = v + 1;
goto label;
label:
return v;
catch java.lang.NumberFormatException from label to label with label;
}
public java.util.List convert(org.apache.hc.core.http.HttpResponse) throws org.apache.hc.core.http.HttpException
{
java.lang.Object[] v, v, v;
java.lang.Integer v;
java.util.ArrayList v;
org.apache.hc.core.http.message.BasicHeader v, v;
java.util.Locale v;
int v;
org.apache.hc.core.http.HttpResponse v;
java.lang.String v, v, v, v;
boolean v, v, v;
java.util.Iterator v;
org.apache.hc.core.http.ProtocolException v, v, v;
org.apache.hc.core.http.impl.DefaultH2ResponseConverter v;
java.lang.Object v;
v := @this: org.apache.hc.core.http.impl.DefaultH2ResponseConverter;
v := @parameter: org.apache.hc.core.http.HttpResponse;
v = interfaceinvoke v.<org.apache.hc.core.http.HttpResponse: int getCode()>();
if v < 100 goto label;
if v < 600 goto label;
label:
v = new org.apache.hc.core.http.ProtocolException;
v = newarray (java.lang.Object)[1];
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(v);
v[0] = v;
specialinvoke v.<org.apache.hc.core.http.ProtocolException: void <init>(java.lang.String,java.lang.Object[])>("Response status %s is invalid", v);
throw v;
label:
v = new java.util.ArrayList;
specialinvoke v.<java.util.ArrayList: void <init>()>();
v = new org.apache.hc.core.http.message.BasicHeader;
v = staticinvoke <java.lang.Integer: java.lang.String toString(int)>(v);
specialinvoke v.<org.apache.hc.core.http.message.BasicHeader: void <init>(java.lang.String,java.lang.Object,boolean)>(":status", v, 0);
interfaceinvoke v.<java.util.List: boolean add(java.lang.Object)>(v);
v = interfaceinvoke v.<org.apache.hc.core.http.HttpResponse: java.util.Iterator headerIterator()>();
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.<org.apache.hc.core.http.Header: java.lang.String getName()>();
v = interfaceinvoke v.<org.apache.hc.core.http.Header: java.lang.String getValue()>();
v = virtualinvoke v.<java.lang.String: boolean startsWith(java.lang.String)>(":");
if v == 0 goto label;
v = new org.apache.hc.core.http.ProtocolException;
v = newarray (java.lang.Object)[1];
v[0] = v;
specialinvoke v.<org.apache.hc.core.http.ProtocolException: void <init>(java.lang.String,java.lang.Object[])>("Header name \'%s\' is invalid", v);
throw v;
label:
v = virtualinvoke v.<java.lang.String: boolean equalsIgnoreCase(java.lang.String)>("Connection");
if v == 0 goto label;
v = new org.apache.hc.core.http.ProtocolException;
v = newarray (java.lang.Object)[2];
v[0] = v;
v[1] = v;
specialinvoke v.<org.apache.hc.core.http.ProtocolException: void <init>(java.lang.String,java.lang.Object[])>("Header \'%s: %s\' is illegal for HTTP/2 messages", v);
throw v;
label:
v = new org.apache.hc.core.http.message.BasicHeader;
v = <java.util.Locale: java.util.Locale ROOT>;
v = virtualinvoke v.<java.lang.String: java.lang.String toLowerCase(java.util.Locale)>(v);
specialinvoke v.<org.apache.hc.core.http.message.BasicHeader: void <init>(java.lang.String,java.lang.Object)>(v, v);
interfaceinvoke v.<java.util.List: boolean add(java.lang.Object)>(v);
goto label;
label:
return v;
}
static void <clinit>()
{
org.apache.hc.core.http.impl.DefaultH2ResponseConverter v;
v = new org.apache.hc.core.http.impl.DefaultH2ResponseConverter;
specialinvoke v.<org.apache.hc.core.http.impl.DefaultH2ResponseConverter: void <init>()>();
<org.apache.hc.core.http.impl.DefaultH2ResponseConverter: org.apache.hc.core.http.impl.DefaultH2ResponseConverter INSTANCE> = v;
return;
}
}