public final class org.apache.hc.client.http.impl.classic.MainClientExec extends java.lang.Object implements org.apache.hc.client.http.classic.ExecChainHandler
{
private static final org.slf4j.Logger LOG;
private final org.apache.hc.client.http.io.HttpClientConnectionManager connectionManager;
private final org.apache.hc.core.http.ConnectionReuseStrategy reuseStrategy;
private final org.apache.hc.client.http.ConnectionKeepAliveStrategy keepAliveStrategy;
private final org.apache.hc.client.http.UserTokenHandler userTokenHandler;
public void <init>(org.apache.hc.client.http.io.HttpClientConnectionManager, org.apache.hc.core.http.ConnectionReuseStrategy, org.apache.hc.client.http.ConnectionKeepAliveStrategy, org.apache.hc.client.http.UserTokenHandler)
{
org.apache.hc.core.http.ConnectionReuseStrategy v;
org.apache.hc.client.http.UserTokenHandler v;
org.apache.hc.client.http.io.HttpClientConnectionManager v;
org.apache.hc.client.http.ConnectionKeepAliveStrategy v;
org.apache.hc.client.http.impl.classic.MainClientExec v;
java.lang.Object v, v, v, v;
v := @this: org.apache.hc.client.http.impl.classic.MainClientExec;
v := @parameter: org.apache.hc.client.http.io.HttpClientConnectionManager;
v := @parameter: org.apache.hc.core.http.ConnectionReuseStrategy;
v := @parameter: org.apache.hc.client.http.ConnectionKeepAliveStrategy;
v := @parameter: org.apache.hc.client.http.UserTokenHandler;
specialinvoke v.<java.lang.Object: void <init>()>();
v = staticinvoke <org.apache.hc.core.util.Args: java.lang.Object notNull(java.lang.Object,java.lang.String)>(v, "Connection manager");
v.<org.apache.hc.client.http.impl.classic.MainClientExec: org.apache.hc.client.http.io.HttpClientConnectionManager connectionManager> = v;
v = staticinvoke <org.apache.hc.core.util.Args: java.lang.Object notNull(java.lang.Object,java.lang.String)>(v, "Connection reuse strategy");
v.<org.apache.hc.client.http.impl.classic.MainClientExec: org.apache.hc.core.http.ConnectionReuseStrategy reuseStrategy> = v;
v = staticinvoke <org.apache.hc.core.util.Args: java.lang.Object notNull(java.lang.Object,java.lang.String)>(v, "Connection keep alive strategy");
v.<org.apache.hc.client.http.impl.classic.MainClientExec: org.apache.hc.client.http.ConnectionKeepAliveStrategy keepAliveStrategy> = v;
v = staticinvoke <org.apache.hc.core.util.Args: java.lang.Object notNull(java.lang.Object,java.lang.String)>(v, "User token handler");
v.<org.apache.hc.client.http.impl.classic.MainClientExec: org.apache.hc.client.http.UserTokenHandler userTokenHandler> = v;
return;
}
public org.apache.hc.core.http.ClassicHttpResponse execute(org.apache.hc.core.http.ClassicHttpRequest, org.apache.hc.client.http.classic.ExecChain$Scope, org.apache.hc.client.http.classic.ExecChain) throws java.io.IOException, org.apache.hc.core.http.HttpException
{
org.apache.hc.client.http.ConnectionKeepAliveStrategy v;
org.apache.hc.client.http.classic.ExecRuntime v;
org.apache.hc.core.http.ClassicHttpResponse v;
org.apache.hc.client.http.impl.ConnectionShutdownException v;
boolean v, v, v, v;
org.apache.hc.core.util.TimeValue v;
org.apache.hc.core.http.ConnectionReuseStrategy v;
java.lang.Exception v;
org.apache.hc.core.http.HttpEntity v;
org.apache.hc.client.http.classic.ExecChain$Scope v;
org.apache.hc.client.http.protocol.HttpClientContext v;
java.lang.Error v;
org.apache.hc.core.http.message.RequestLine v;
org.apache.hc.client.http.io.HttpClientConnectionManager v;
java.io.InterruptedIOException v;
org.apache.hc.core.io.CloseMode v;
org.apache.hc.client.http.impl.classic.CloseableHttpResponse v, v;
java.lang.String v, v;
org.slf4j.Logger v, v, v, v;
org.apache.hc.client.http.UserTokenHandler v;
org.apache.hc.client.http.HttpRoute v;
org.apache.hc.core.http.ClassicHttpRequest v;
org.apache.hc.client.http.impl.classic.MainClientExec v;
java.lang.Object v;
org.apache.hc.client.http.classic.ExecChain v;
v := @this: org.apache.hc.client.http.impl.classic.MainClientExec;
v := @parameter: org.apache.hc.core.http.ClassicHttpRequest;
v := @parameter: org.apache.hc.client.http.classic.ExecChain$Scope;
v := @parameter: org.apache.hc.client.http.classic.ExecChain;
staticinvoke <org.apache.hc.core.util.Args: java.lang.Object notNull(java.lang.Object,java.lang.String)>(v, "HTTP request");
staticinvoke <org.apache.hc.core.util.Args: java.lang.Object notNull(java.lang.Object,java.lang.String)>(v, "Scope");
v = v.<org.apache.hc.client.http.classic.ExecChain$Scope: java.lang.String exchangeId>;
v = v.<org.apache.hc.client.http.classic.ExecChain$Scope: org.apache.hc.client.http.HttpRoute route>;
v = v.<org.apache.hc.client.http.classic.ExecChain$Scope: org.apache.hc.client.http.protocol.HttpClientContext clientContext>;
v = v.<org.apache.hc.client.http.classic.ExecChain$Scope: org.apache.hc.client.http.classic.ExecRuntime execRuntime>;
v = <org.apache.hc.client.http.impl.classic.MainClientExec: org.slf4j.Logger LOG>;
v = interfaceinvoke v.<org.slf4j.Logger: boolean isDebugEnabled()>();
if v == 0 goto label;
v = <org.apache.hc.client.http.impl.classic.MainClientExec: org.slf4j.Logger LOG>;
v = new org.apache.hc.core.http.message.RequestLine;
specialinvoke v.<org.apache.hc.core.http.message.RequestLine: void <init>(org.apache.hc.core.http.HttpRequest)>(v);
interfaceinvoke v.<org.slf4j.Logger: void debug(java.lang.String,java.lang.Object,java.lang.Object)>("{} executing {}", v, v);
label:
v = interfaceinvoke v.<org.apache.hc.client.http.classic.ExecRuntime: org.apache.hc.core.http.ClassicHttpResponse execute(java.lang.String,org.apache.hc.core.http.ClassicHttpRequest,org.apache.hc.client.http.protocol.HttpClientContext)>(v, v, v);
v = virtualinvoke v.<org.apache.hc.client.http.protocol.HttpClientContext: java.lang.Object getUserToken()>();
if v != null goto label;
v = v.<org.apache.hc.client.http.impl.classic.MainClientExec: org.apache.hc.client.http.UserTokenHandler userTokenHandler>;
v = interfaceinvoke v.<org.apache.hc.client.http.UserTokenHandler: java.lang.Object getUserToken(org.apache.hc.client.http.HttpRoute,org.apache.hc.core.http.protocol.HttpContext)>(v, v);
virtualinvoke v.<org.apache.hc.client.http.protocol.HttpClientContext: java.lang.Object setAttribute(java.lang.String,java.lang.Object)>("http.user-token", v);
label:
v = v.<org.apache.hc.client.http.impl.classic.MainClientExec: org.apache.hc.core.http.ConnectionReuseStrategy reuseStrategy>;
v = interfaceinvoke v.<org.apache.hc.core.http.ConnectionReuseStrategy: boolean keepAlive(org.apache.hc.core.http.HttpRequest,org.apache.hc.core.http.HttpResponse,org.apache.hc.core.http.protocol.HttpContext)>(v, v, v);
if v == 0 goto label;
v = v.<org.apache.hc.client.http.impl.classic.MainClientExec: org.apache.hc.client.http.ConnectionKeepAliveStrategy keepAliveStrategy>;
v = interfaceinvoke v.<org.apache.hc.client.http.ConnectionKeepAliveStrategy: org.apache.hc.core.util.TimeValue getKeepAliveDuration(org.apache.hc.core.http.HttpResponse,org.apache.hc.core.http.protocol.HttpContext)>(v, v);
v = <org.apache.hc.client.http.impl.classic.MainClientExec: org.slf4j.Logger LOG>;
v = interfaceinvoke v.<org.slf4j.Logger: boolean isDebugEnabled()>();
if v == 0 goto label;
if v == null goto label;
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (org.apache.hc.core.util.TimeValue)>(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[])>("for \u0001");
goto label;
label:
v = "indefinitely";
label:
v = <org.apache.hc.client.http.impl.classic.MainClientExec: org.slf4j.Logger LOG>;
interfaceinvoke v.<org.slf4j.Logger: void debug(java.lang.String,java.lang.Object,java.lang.Object)>("{} connection can be kept alive {}", v, v);
label:
interfaceinvoke v.<org.apache.hc.client.http.classic.ExecRuntime: void markConnectionReusable(java.lang.Object,org.apache.hc.core.util.TimeValue)>(v, v);
goto label;
label:
interfaceinvoke v.<org.apache.hc.client.http.classic.ExecRuntime: void markConnectionNonReusable()>();
label:
v = interfaceinvoke v.<org.apache.hc.core.http.ClassicHttpResponse: org.apache.hc.core.http.HttpEntity getEntity()>();
if v == null goto label;
v = interfaceinvoke v.<org.apache.hc.core.http.HttpEntity: boolean isStreaming()>();
if v != 0 goto label;
label:
interfaceinvoke v.<org.apache.hc.client.http.classic.ExecRuntime: void releaseEndpoint()>();
v = new org.apache.hc.client.http.impl.classic.CloseableHttpResponse;
specialinvoke v.<org.apache.hc.client.http.impl.classic.CloseableHttpResponse: void <init>(org.apache.hc.core.http.ClassicHttpResponse,org.apache.hc.client.http.classic.ExecRuntime)>(v, null);
label:
return v;
label:
v = new org.apache.hc.client.http.impl.classic.CloseableHttpResponse;
specialinvoke v.<org.apache.hc.client.http.impl.classic.CloseableHttpResponse: void <init>(org.apache.hc.core.http.ClassicHttpResponse,org.apache.hc.client.http.classic.ExecRuntime)>(v, v);
label:
return v;
label:
v := @caughtexception;
v = new java.io.InterruptedIOException;
specialinvoke v.<java.io.InterruptedIOException: void <init>(java.lang.String)>("Connection has been shut down");
virtualinvoke v.<java.io.InterruptedIOException: java.lang.Throwable initCause(java.lang.Throwable)>(v);
interfaceinvoke v.<org.apache.hc.client.http.classic.ExecRuntime: void discardEndpoint()>();
throw v;
label:
v := @caughtexception;
interfaceinvoke v.<org.apache.hc.client.http.classic.ExecRuntime: void discardEndpoint()>();
throw v;
label:
v := @caughtexception;
v = v.<org.apache.hc.client.http.impl.classic.MainClientExec: org.apache.hc.client.http.io.HttpClientConnectionManager connectionManager>;
v = <org.apache.hc.core.io.CloseMode: org.apache.hc.core.io.CloseMode IMMEDIATE>;
interfaceinvoke v.<org.apache.hc.client.http.io.HttpClientConnectionManager: void close(org.apache.hc.core.io.CloseMode)>(v);
throw v;
catch org.apache.hc.client.http.impl.ConnectionShutdownException from label to label with label;
catch org.apache.hc.client.http.impl.ConnectionShutdownException from label to label with label;
catch org.apache.hc.core.http.HttpException from label to label with label;
catch java.lang.RuntimeException from label to label with label;
catch java.io.IOException from label to label with label;
catch org.apache.hc.core.http.HttpException from label to label with label;
catch java.lang.RuntimeException from label to label with label;
catch java.io.IOException from label to label with label;
catch java.lang.Error from label to label with label;
catch java.lang.Error from label to label with label;
}
static void <clinit>()
{
org.slf4j.Logger v;
v = staticinvoke <org.slf4j.LoggerFactory: org.slf4j.Logger getLogger(java.lang.Class)>(class "Lorg/apache/hc/client5/http/impl/classic/MainClientExec;");
<org.apache.hc.client.http.impl.classic.MainClientExec: org.slf4j.Logger LOG> = v;
return;
}
}