public class org.apache.http.protocol.RequestTargetHost implements org.apache.http.HttpRequestInterceptor
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.http.protocol.RequestTargetHost
super_class: java.lang.Object
{
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 // org.apache.http.protocol.RequestTargetHost this
0: .line 56
aload 0 /* this */
invokespecial java.lang.Object.<init>:()V
1: .line 57
return
end local 0 // org.apache.http.protocol.RequestTargetHost this
LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/http/protocol/RequestTargetHost;
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=4, locals=10, args_size=3
start local 0 // org.apache.http.protocol.RequestTargetHost this
start local 1 // org.apache.http.HttpRequest request
start local 2 // org.apache.http.protocol.HttpContext context
0: .line 62
aload 1 /* request */
ldc "HTTP request"
invokestatic org.apache.http.util.Args.notNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
pop
1: .line 64
aload 2 /* context */
invokestatic org.apache.http.protocol.HttpCoreContext.adapt:(Lorg/apache/http/protocol/HttpContext;)Lorg/apache/http/protocol/HttpCoreContext;
astore 3 /* coreContext */
start local 3 // org.apache.http.protocol.HttpCoreContext coreContext
2: .line 66
aload 1 /* request */
invokeinterface org.apache.http.HttpRequest.getRequestLine:()Lorg/apache/http/RequestLine;
invokeinterface org.apache.http.RequestLine.getProtocolVersion:()Lorg/apache/http/ProtocolVersion;
astore 4 /* ver */
start local 4 // org.apache.http.ProtocolVersion ver
3: .line 67
aload 1 /* request */
invokeinterface org.apache.http.HttpRequest.getRequestLine:()Lorg/apache/http/RequestLine;
invokeinterface org.apache.http.RequestLine.getMethod:()Ljava/lang/String;
astore 5 /* method */
start local 5 // java.lang.String method
4: .line 68
aload 5 /* method */
ldc "CONNECT"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 6
aload 4 /* ver */
getstatic org.apache.http.HttpVersion.HTTP_1_0:Lorg/apache/http/HttpVersion;
invokevirtual org.apache.http.ProtocolVersion.lessEquals:(Lorg/apache/http/ProtocolVersion;)Z
ifeq 6
5: .line 69
return
6: .line 72
StackMap locals: org.apache.http.protocol.HttpCoreContext org.apache.http.ProtocolVersion java.lang.String
StackMap stack:
aload 1 /* request */
ldc "Host"
invokeinterface org.apache.http.HttpRequest.containsHeader:(Ljava/lang/String;)Z
ifne 20
7: .line 73
aload 3 /* coreContext */
invokevirtual org.apache.http.protocol.HttpCoreContext.getTargetHost:()Lorg/apache/http/HttpHost;
astore 6 /* targetHost */
start local 6 // org.apache.http.HttpHost targetHost
8: .line 74
aload 6 /* targetHost */
ifnonnull 19
9: .line 75
aload 3 /* coreContext */
invokevirtual org.apache.http.protocol.HttpCoreContext.getConnection:()Lorg/apache/http/HttpConnection;
astore 7 /* conn */
start local 7 // org.apache.http.HttpConnection conn
10: .line 76
aload 7 /* conn */
instanceof org.apache.http.HttpInetConnection
ifeq 15
11: .line 79
aload 7 /* conn */
checkcast org.apache.http.HttpInetConnection
invokeinterface org.apache.http.HttpInetConnection.getRemoteAddress:()Ljava/net/InetAddress;
astore 8 /* address */
start local 8 // java.net.InetAddress address
12: .line 80
aload 7 /* conn */
checkcast org.apache.http.HttpInetConnection
invokeinterface org.apache.http.HttpInetConnection.getRemotePort:()I
istore 9 /* port */
start local 9 // int port
13: .line 81
aload 8 /* address */
ifnull 15
14: .line 82
new org.apache.http.HttpHost
dup
aload 8 /* address */
invokevirtual java.net.InetAddress.getHostName:()Ljava/lang/String;
iload 9 /* port */
invokespecial org.apache.http.HttpHost.<init>:(Ljava/lang/String;I)V
astore 6 /* targetHost */
end local 9 // int port
end local 8 // java.net.InetAddress address
15: .line 85
StackMap locals: org.apache.http.HttpHost org.apache.http.HttpConnection
StackMap stack:
aload 6 /* targetHost */
ifnonnull 19
16: .line 86
aload 4 /* ver */
getstatic org.apache.http.HttpVersion.HTTP_1_0:Lorg/apache/http/HttpVersion;
invokevirtual org.apache.http.ProtocolVersion.lessEquals:(Lorg/apache/http/ProtocolVersion;)Z
ifeq 18
17: .line 87
return
18: .line 89
StackMap locals:
StackMap stack:
new org.apache.http.ProtocolException
dup
ldc "Target host missing"
invokespecial org.apache.http.ProtocolException.<init>:(Ljava/lang/String;)V
athrow
end local 7 // org.apache.http.HttpConnection conn
19: .line 92
StackMap locals:
StackMap stack:
aload 1 /* request */
ldc "Host"
aload 6 /* targetHost */
invokevirtual org.apache.http.HttpHost.toHostString:()Ljava/lang/String;
invokeinterface org.apache.http.HttpRequest.addHeader:(Ljava/lang/String;Ljava/lang/String;)V
end local 6 // org.apache.http.HttpHost targetHost
20: .line 94
StackMap locals:
StackMap stack:
return
end local 5 // java.lang.String method
end local 4 // org.apache.http.ProtocolVersion ver
end local 3 // org.apache.http.protocol.HttpCoreContext coreContext
end local 2 // org.apache.http.protocol.HttpContext context
end local 1 // org.apache.http.HttpRequest request
end local 0 // org.apache.http.protocol.RequestTargetHost this
LocalVariableTable:
Start End Slot Name Signature
0 21 0 this Lorg/apache/http/protocol/RequestTargetHost;
0 21 1 request Lorg/apache/http/HttpRequest;
0 21 2 context Lorg/apache/http/protocol/HttpContext;
2 21 3 coreContext Lorg/apache/http/protocol/HttpCoreContext;
3 21 4 ver Lorg/apache/http/ProtocolVersion;
4 21 5 method Ljava/lang/String;
8 20 6 targetHost Lorg/apache/http/HttpHost;
10 19 7 conn Lorg/apache/http/HttpConnection;
12 15 8 address Ljava/net/InetAddress;
13 15 9 port I
Exceptions:
throws org.apache.http.HttpException, java.io.IOException
MethodParameters:
Name Flags
request final
context final
}
SourceFile: "RequestTargetHost.java"
RuntimeInvisibleAnnotations:
org.apache.http.annotation.Contract(threading = org.apache.http.annotation.ThreadingBehavior.IMMUTABLE:Lorg/apache/http/annotation/ThreadingBehavior;)