public class org.apache.http.client.protocol.RequestClientConnControl implements org.apache.http.HttpRequestInterceptor
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.http.client.protocol.RequestClientConnControl
super_class: java.lang.Object
{
private final org.apache.commons.logging.Log log;
descriptor: Lorg/apache/commons/logging/Log;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private static final java.lang.String PROXY_CONN_DIRECTIVE;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "Proxy-Connection"
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokestatic org.apache.commons.logging.LogFactory.getLog:(Ljava/lang/Class;)Lorg/apache/commons/logging/Log;
putfield org.apache.http.client.protocol.RequestClientConnControl.log:Lorg/apache/commons/logging/Log;
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/http/client/protocol/RequestClientConnControl;
public void process(org.apache.http.HttpRequest, org.apache.http.protocol.HttpContext);
descriptor: (Lorg/apache/http/HttpRequest;Lorg/apache/http/protocol/HttpContext;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 1
ldc "HTTP request"
invokestatic org.apache.http.util.Args.notNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
pop
1: aload 1
invokeinterface org.apache.http.HttpRequest.getRequestLine:()Lorg/apache/http/RequestLine;
invokeinterface org.apache.http.RequestLine.getMethod:()Ljava/lang/String;
astore 3
start local 3 2: aload 3
ldc "CONNECT"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 5
3: aload 1
ldc "Proxy-Connection"
ldc "Keep-Alive"
invokeinterface org.apache.http.HttpRequest.setHeader:(Ljava/lang/String;Ljava/lang/String;)V
4: return
5: StackMap locals: java.lang.String
StackMap stack:
aload 2
invokestatic org.apache.http.client.protocol.HttpClientContext.adapt:(Lorg/apache/http/protocol/HttpContext;)Lorg/apache/http/client/protocol/HttpClientContext;
astore 4
start local 4 6: aload 4
invokevirtual org.apache.http.client.protocol.HttpClientContext.getHttpRoute:()Lorg/apache/http/conn/routing/RouteInfo;
astore 5
start local 5 7: aload 5
ifnonnull 10
8: aload 0
getfield org.apache.http.client.protocol.RequestClientConnControl.log:Lorg/apache/commons/logging/Log;
ldc "Connection route not set in the context"
invokeinterface org.apache.commons.logging.Log.debug:(Ljava/lang/Object;)V
9: return
10: StackMap locals: org.apache.http.client.protocol.HttpClientContext org.apache.http.conn.routing.RouteInfo
StackMap stack:
aload 5
invokeinterface org.apache.http.conn.routing.RouteInfo.getHopCount:()I
iconst_1
if_icmpeq 11
aload 5
invokeinterface org.apache.http.conn.routing.RouteInfo.isTunnelled:()Z
ifeq 13
11: StackMap locals:
StackMap stack:
aload 1
ldc "Connection"
invokeinterface org.apache.http.HttpRequest.containsHeader:(Ljava/lang/String;)Z
ifne 13
12: aload 1
ldc "Connection"
ldc "Keep-Alive"
invokeinterface org.apache.http.HttpRequest.addHeader:(Ljava/lang/String;Ljava/lang/String;)V
13: StackMap locals:
StackMap stack:
aload 5
invokeinterface org.apache.http.conn.routing.RouteInfo.getHopCount:()I
iconst_2
if_icmpne 16
aload 5
invokeinterface org.apache.http.conn.routing.RouteInfo.isTunnelled:()Z
ifne 16
14: aload 1
ldc "Proxy-Connection"
invokeinterface org.apache.http.HttpRequest.containsHeader:(Ljava/lang/String;)Z
ifne 16
15: aload 1
ldc "Proxy-Connection"
ldc "Keep-Alive"
invokeinterface org.apache.http.HttpRequest.addHeader:(Ljava/lang/String;Ljava/lang/String;)V
16: StackMap locals:
StackMap stack:
return
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lorg/apache/http/client/protocol/RequestClientConnControl;
0 17 1 request Lorg/apache/http/HttpRequest;
0 17 2 context Lorg/apache/http/protocol/HttpContext;
2 17 3 method Ljava/lang/String;
6 17 4 clientContext Lorg/apache/http/client/protocol/HttpClientContext;
7 17 5 route Lorg/apache/http/conn/routing/RouteInfo;
Exceptions:
throws org.apache.http.HttpException, java.io.IOException
MethodParameters:
Name Flags
request final
context final
}
SourceFile: "RequestClientConnControl.java"
RuntimeInvisibleAnnotations:
org.apache.http.annotation.Contract(threading = org.apache.http.annotation.ThreadingBehavior.IMMUTABLE:Lorg/apache/http/annotation/ThreadingBehavior;)