public class org.apache.hc.client.http.impl.DefaultConnectionKeepAliveStrategy extends java.lang.Object implements org.apache.hc.client.http.ConnectionKeepAliveStrategy
{
public static final org.apache.hc.client.http.impl.DefaultConnectionKeepAliveStrategy INSTANCE;
public void <init>()
{
org.apache.hc.client.http.impl.DefaultConnectionKeepAliveStrategy v;
v := @this: org.apache.hc.client.http.impl.DefaultConnectionKeepAliveStrategy;
specialinvoke v.<java.lang.Object: void <init>()>();
return;
}
public org.apache.hc.core.util.TimeValue getKeepAliveDuration(org.apache.hc.core.http.HttpResponse, org.apache.hc.core.http.protocol.HttpContext)
{
org.apache.hc.core.util.TimeValue v, v;
java.util.Iterator v;
org.apache.hc.client.http.protocol.HttpClientContext v;
org.apache.hc.core.http.protocol.HttpContext v;
org.apache.hc.client.http.impl.DefaultConnectionKeepAliveStrategy v;
java.lang.NumberFormatException v;
long v;
java.lang.Object v;
org.apache.hc.core.http.HttpResponse v;
java.lang.String v, v;
org.apache.hc.client.http.config.RequestConfig v;
boolean v, v;
v := @this: org.apache.hc.client.http.impl.DefaultConnectionKeepAliveStrategy;
v := @parameter: org.apache.hc.core.http.HttpResponse;
v := @parameter: org.apache.hc.core.http.protocol.HttpContext;
staticinvoke <org.apache.hc.core.util.Args: java.lang.Object notNull(java.lang.Object,java.lang.String)>(v, "HTTP response");
v = staticinvoke <org.apache.hc.core.http.message.MessageSupport: java.util.Iterator iterate(org.apache.hc.core.http.MessageHeaders,java.lang.String)>(v, "keep-alive");
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.HeaderElement: java.lang.String getName()>();
v = interfaceinvoke v.<org.apache.hc.core.http.HeaderElement: java.lang.String getValue()>();
if v == null goto label;
v = virtualinvoke v.<java.lang.String: boolean equalsIgnoreCase(java.lang.String)>("timeout");
if v == 0 goto label;
label:
v = staticinvoke <java.lang.Long: long parseLong(java.lang.String)>(v);
v = staticinvoke <org.apache.hc.core.util.TimeValue: org.apache.hc.core.util.TimeValue ofSeconds(long)>(v);
label:
return v;
label:
v := @caughtexception;
goto label;
label:
v = staticinvoke <org.apache.hc.client.http.protocol.HttpClientContext: org.apache.hc.client.http.protocol.HttpClientContext adapt(org.apache.hc.core.http.protocol.HttpContext)>(v);
v = virtualinvoke v.<org.apache.hc.client.http.protocol.HttpClientContext: org.apache.hc.client.http.config.RequestConfig getRequestConfig()>();
v = virtualinvoke v.<org.apache.hc.client.http.config.RequestConfig: org.apache.hc.core.util.TimeValue getConnectionKeepAlive()>();
return v;
catch java.lang.NumberFormatException from label to label with label;
}
static void <clinit>()
{
org.apache.hc.client.http.impl.DefaultConnectionKeepAliveStrategy v;
v = new org.apache.hc.client.http.impl.DefaultConnectionKeepAliveStrategy;
specialinvoke v.<org.apache.hc.client.http.impl.DefaultConnectionKeepAliveStrategy: void <init>()>();
<org.apache.hc.client.http.impl.DefaultConnectionKeepAliveStrategy: org.apache.hc.client.http.impl.DefaultConnectionKeepAliveStrategy INSTANCE> = v;
return;
}
}