public class org.apache.hc.client.http.protocol.RequestAddCookies extends java.lang.Object implements org.apache.hc.core.http.HttpRequestInterceptor
{
private static final org.slf4j.Logger LOG;
public void <init>()
{
org.apache.hc.client.http.protocol.RequestAddCookies v;
v := @this: org.apache.hc.client.http.protocol.RequestAddCookies;
specialinvoke v.<java.lang.Object: void <init>()>();
return;
}
public void process(org.apache.hc.core.http.HttpRequest, org.apache.hc.core.http.EntityDetails, org.apache.hc.core.http.protocol.HttpContext) throws org.apache.hc.core.http.HttpException, java.io.IOException
{
org.apache.hc.core.net.URIAuthority v;
org.apache.hc.client.http.cookie.CookieStore v;
java.lang.Object[] v;
org.apache.hc.core.http.protocol.HttpContext v;
java.util.ArrayList v;
org.apache.hc.core.http.EntityDetails v;
java.lang.String v, v, v, v, v, v;
org.apache.hc.client.http.config.RequestConfig v;
org.apache.hc.core.http.HttpHost v, v;
org.apache.hc.client.http.RouteInfo v;
org.apache.hc.core.http.HttpRequest v;
java.util.Date v;
org.apache.hc.core.http.config.Lookup v;
org.apache.hc.client.http.cookie.CookieSpec v;
boolean v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v;
org.apache.hc.client.http.cookie.CookieOrigin v;
java.util.List v, v;
org.apache.hc.client.http.protocol.HttpClientContext v;
int v, v, v;
org.apache.hc.client.http.protocol.RequestAddCookies v;
org.slf4j.Logger v, v, v, v, v, v, v, v, v, v, v, v, v, v;
java.util.Iterator v, v;
org.apache.hc.core.http.Method v, v;
java.lang.Object v, v, v;
v := @this: org.apache.hc.client.http.protocol.RequestAddCookies;
v := @parameter: org.apache.hc.core.http.HttpRequest;
v := @parameter: org.apache.hc.core.http.EntityDetails;
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 request");
staticinvoke <org.apache.hc.core.util.Args: java.lang.Object notNull(java.lang.Object,java.lang.String)>(v, "HTTP context");
v = interfaceinvoke v.<org.apache.hc.core.http.HttpRequest: java.lang.String getMethod()>();
v = <org.apache.hc.core.http.Method: org.apache.hc.core.http.Method CONNECT>;
v = virtualinvoke v.<org.apache.hc.core.http.Method: boolean isSame(java.lang.String)>(v);
if v != 0 goto label;
v = <org.apache.hc.core.http.Method: org.apache.hc.core.http.Method TRACE>;
v = virtualinvoke v.<org.apache.hc.core.http.Method: boolean isSame(java.lang.String)>(v);
if v == 0 goto label;
label:
return;
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: java.lang.String getExchangeId()>();
v = virtualinvoke v.<org.apache.hc.client.http.protocol.HttpClientContext: org.apache.hc.client.http.cookie.CookieStore getCookieStore()>();
if v != null goto label;
v = <org.apache.hc.client.http.protocol.RequestAddCookies: org.slf4j.Logger LOG>;
v = interfaceinvoke v.<org.slf4j.Logger: boolean isDebugEnabled()>();
if v == 0 goto label;
v = <org.apache.hc.client.http.protocol.RequestAddCookies: org.slf4j.Logger LOG>;
interfaceinvoke v.<org.slf4j.Logger: void debug(java.lang.String,java.lang.Object)>("{} Cookie store not specified in HTTP context", v);
label:
return;
label:
v = virtualinvoke v.<org.apache.hc.client.http.protocol.HttpClientContext: org.apache.hc.core.http.config.Lookup getCookieSpecRegistry()>();
if v != null goto label;
v = <org.apache.hc.client.http.protocol.RequestAddCookies: org.slf4j.Logger LOG>;
v = interfaceinvoke v.<org.slf4j.Logger: boolean isDebugEnabled()>();
if v == 0 goto label;
v = <org.apache.hc.client.http.protocol.RequestAddCookies: org.slf4j.Logger LOG>;
interfaceinvoke v.<org.slf4j.Logger: void debug(java.lang.String,java.lang.Object)>("{} CookieSpec registry not specified in HTTP context", v);
label:
return;
label:
v = virtualinvoke v.<org.apache.hc.client.http.protocol.HttpClientContext: org.apache.hc.client.http.RouteInfo getHttpRoute()>();
if v != null goto label;
v = <org.apache.hc.client.http.protocol.RequestAddCookies: org.slf4j.Logger LOG>;
v = interfaceinvoke v.<org.slf4j.Logger: boolean isDebugEnabled()>();
if v == 0 goto label;
v = <org.apache.hc.client.http.protocol.RequestAddCookies: org.slf4j.Logger LOG>;
interfaceinvoke v.<org.slf4j.Logger: void debug(java.lang.String,java.lang.Object)>("{} Connection route not set in the context", v);
label:
return;
label:
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: java.lang.String getCookieSpec()>();
if v != null goto label;
v = "strict";
label:
v = <org.apache.hc.client.http.protocol.RequestAddCookies: org.slf4j.Logger LOG>;
v = interfaceinvoke v.<org.slf4j.Logger: boolean isDebugEnabled()>();
if v == 0 goto label;
v = <org.apache.hc.client.http.protocol.RequestAddCookies: org.slf4j.Logger LOG>;
interfaceinvoke v.<org.slf4j.Logger: void debug(java.lang.String,java.lang.Object,java.lang.Object)>("{} Cookie spec selected: {}", v, v);
label:
v = interfaceinvoke v.<org.apache.hc.core.http.HttpRequest: org.apache.hc.core.net.URIAuthority getAuthority()>();
v = interfaceinvoke v.<org.apache.hc.core.http.HttpRequest: java.lang.String getPath()>();
v = staticinvoke <org.apache.hc.core.util.TextUtils: boolean isEmpty(java.lang.CharSequence)>(v);
if v == 0 goto label;
v = "/";
label:
if v == null goto label;
v = virtualinvoke v.<org.apache.hc.core.net.URIAuthority: java.lang.String getHostName()>();
goto label;
label:
v = null;
label:
v = v;
if v != null goto label;
v = interfaceinvoke v.<org.apache.hc.client.http.RouteInfo: org.apache.hc.core.http.HttpHost getTargetHost()>();
v = virtualinvoke v.<org.apache.hc.core.http.HttpHost: java.lang.String getHostName()>();
label:
if v == null goto label;
v = virtualinvoke v.<org.apache.hc.core.net.URIAuthority: int getPort()>();
goto label;
label:
v = (int) -1;
v = v;
label:
v = v;
if v >= 0 goto label;
v = interfaceinvoke v.<org.apache.hc.client.http.RouteInfo: org.apache.hc.core.http.HttpHost getTargetHost()>();
v = virtualinvoke v.<org.apache.hc.core.http.HttpHost: int getPort()>();
label:
v = new org.apache.hc.client.http.cookie.CookieOrigin;
v = interfaceinvoke v.<org.apache.hc.client.http.RouteInfo: boolean isSecure()>();
specialinvoke v.<org.apache.hc.client.http.cookie.CookieOrigin: void <init>(java.lang.String,int,java.lang.String,boolean)>(v, v, v, v);
v = interfaceinvoke v.<org.apache.hc.core.http.config.Lookup: java.lang.Object lookup(java.lang.String)>(v);
if v != null goto label;
v = <org.apache.hc.client.http.protocol.RequestAddCookies: org.slf4j.Logger LOG>;
v = interfaceinvoke v.<org.slf4j.Logger: boolean isDebugEnabled()>();
if v == 0 goto label;
v = <org.apache.hc.client.http.protocol.RequestAddCookies: org.slf4j.Logger LOG>;
interfaceinvoke v.<org.slf4j.Logger: void debug(java.lang.String,java.lang.Object,java.lang.Object)>("{} Unsupported cookie spec: {}", v, v);
label:
return;
label:
v = interfaceinvoke v.<org.apache.hc.client.http.cookie.CookieSpecFactory: org.apache.hc.client.http.cookie.CookieSpec create(org.apache.hc.core.http.protocol.HttpContext)>(v);
v = interfaceinvoke v.<org.apache.hc.client.http.cookie.CookieStore: java.util.List getCookies()>();
v = new java.util.ArrayList;
specialinvoke v.<java.util.ArrayList: void <init>()>();
v = new java.util.Date;
specialinvoke v.<java.util.Date: void <init>()>();
v = 0;
v = interfaceinvoke v.<java.util.List: java.util.Iterator iterator()>();
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.client.http.cookie.Cookie: boolean isExpired(java.util.Date)>(v);
if v != 0 goto label;
v = interfaceinvoke v.<org.apache.hc.client.http.cookie.CookieSpec: boolean match(org.apache.hc.client.http.cookie.Cookie,org.apache.hc.client.http.cookie.CookieOrigin)>(v, v);
if v == 0 goto label;
v = <org.apache.hc.client.http.protocol.RequestAddCookies: org.slf4j.Logger LOG>;
v = interfaceinvoke v.<org.slf4j.Logger: boolean isDebugEnabled()>();
if v == 0 goto label;
v = <org.apache.hc.client.http.protocol.RequestAddCookies: org.slf4j.Logger LOG>;
v = newarray (java.lang.Object)[3];
v[0] = v;
v[1] = v;
v[2] = v;
interfaceinvoke v.<org.slf4j.Logger: void debug(java.lang.String,java.lang.Object[])>("{} Cookie {} match {}", v);
label:
interfaceinvoke v.<java.util.List: boolean add(java.lang.Object)>(v);
goto label;
label:
v = <org.apache.hc.client.http.protocol.RequestAddCookies: org.slf4j.Logger LOG>;
v = interfaceinvoke v.<org.slf4j.Logger: boolean isDebugEnabled()>();
if v == 0 goto label;
v = <org.apache.hc.client.http.protocol.RequestAddCookies: org.slf4j.Logger LOG>;
interfaceinvoke v.<org.slf4j.Logger: void debug(java.lang.String,java.lang.Object,java.lang.Object)>("{} Cookie {} expired", v, v);
label:
v = 1;
goto label;
label:
if v == 0 goto label;
interfaceinvoke v.<org.apache.hc.client.http.cookie.CookieStore: boolean clearExpired(java.util.Date)>(v);
label:
v = interfaceinvoke v.<java.util.List: boolean isEmpty()>();
if v != 0 goto label;
v = interfaceinvoke v.<org.apache.hc.client.http.cookie.CookieSpec: java.util.List formatCookies(java.util.List)>(v);
v = interfaceinvoke v.<java.util.List: java.util.Iterator iterator()>();
label:
v = interfaceinvoke v.<java.util.Iterator: boolean hasNext()>();
if v == 0 goto label;
v = interfaceinvoke v.<java.util.Iterator: java.lang.Object next()>();
interfaceinvoke v.<org.apache.hc.core.http.HttpRequest: void addHeader(org.apache.hc.core.http.Header)>(v);
goto label;
label:
interfaceinvoke v.<org.apache.hc.core.http.protocol.HttpContext: java.lang.Object setAttribute(java.lang.String,java.lang.Object)>("http.cookie-spec", v);
interfaceinvoke v.<org.apache.hc.core.http.protocol.HttpContext: java.lang.Object setAttribute(java.lang.String,java.lang.Object)>("http.cookie-origin", v);
return;
}
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/protocol/RequestAddCookies;");
<org.apache.hc.client.http.protocol.RequestAddCookies: org.slf4j.Logger LOG> = v;
return;
}
}