public class org.apache.http.client.utils.URIUtils
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.http.client.utils.URIUtils
super_class: java.lang.Object
{
public static java.net.URI createURI(java.lang.String, java.lang.String, int, java.lang.String, java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/net/URI;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=7, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 6
start local 6 1: aload 1
ifnull 9
2: aload 0
ifnull 5
3: aload 6
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
4: aload 6
ldc "://"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
5: StackMap locals: java.lang.StringBuilder
StackMap stack:
aload 6
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
6: iload 2
ifle 9
7: aload 6
bipush 58
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
8: aload 6
iload 2
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
pop
9: StackMap locals:
StackMap stack:
aload 3
ifnull 10
aload 3
ldc "/"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifne 11
10: StackMap locals:
StackMap stack:
aload 6
bipush 47
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
11: StackMap locals:
StackMap stack:
aload 3
ifnull 13
12: aload 6
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
13: StackMap locals:
StackMap stack:
aload 4
ifnull 16
14: aload 6
bipush 63
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
15: aload 6
aload 4
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
16: StackMap locals:
StackMap stack:
aload 5
ifnull 19
17: aload 6
bipush 35
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
18: aload 6
aload 5
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
19: StackMap locals:
StackMap stack:
new java.net.URI
dup
aload 6
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.net.URI.<init>:(Ljava/lang/String;)V
areturn
end local 6 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 20 0 scheme Ljava/lang/String;
0 20 1 host Ljava/lang/String;
0 20 2 port I
0 20 3 path Ljava/lang/String;
0 20 4 query Ljava/lang/String;
0 20 5 fragment Ljava/lang/String;
1 20 6 buffer Ljava/lang/StringBuilder;
Exceptions:
throws java.net.URISyntaxException
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
scheme final
host final
port final
path final
query final
fragment final
public static java.net.URI rewriteURI(java.net.URI, org.apache.http.HttpHost, boolean);
descriptor: (Ljava/net/URI;Lorg/apache/http/HttpHost;Z)Ljava/net/URI;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=9, args_size=3
start local 0 start local 1 start local 2 0: aload 0
ldc "URI"
invokestatic org.apache.http.util.Args.notNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
pop
1: aload 0
invokevirtual java.net.URI.isOpaque:()Z
ifeq 3
2: aload 0
areturn
3: StackMap locals:
StackMap stack:
new org.apache.http.client.utils.URIBuilder
dup
aload 0
invokespecial org.apache.http.client.utils.URIBuilder.<init>:(Ljava/net/URI;)V
astore 3
start local 3 4: aload 1
ifnull 9
5: aload 3
aload 1
invokevirtual org.apache.http.HttpHost.getSchemeName:()Ljava/lang/String;
invokevirtual org.apache.http.client.utils.URIBuilder.setScheme:(Ljava/lang/String;)Lorg/apache/http/client/utils/URIBuilder;
pop
6: aload 3
aload 1
invokevirtual org.apache.http.HttpHost.getHostName:()Ljava/lang/String;
invokevirtual org.apache.http.client.utils.URIBuilder.setHost:(Ljava/lang/String;)Lorg/apache/http/client/utils/URIBuilder;
pop
7: aload 3
aload 1
invokevirtual org.apache.http.HttpHost.getPort:()I
invokevirtual org.apache.http.client.utils.URIBuilder.setPort:(I)Lorg/apache/http/client/utils/URIBuilder;
pop
8: goto 12
9: StackMap locals: org.apache.http.client.utils.URIBuilder
StackMap stack:
aload 3
aconst_null
invokevirtual org.apache.http.client.utils.URIBuilder.setScheme:(Ljava/lang/String;)Lorg/apache/http/client/utils/URIBuilder;
pop
10: aload 3
aconst_null
invokevirtual org.apache.http.client.utils.URIBuilder.setHost:(Ljava/lang/String;)Lorg/apache/http/client/utils/URIBuilder;
pop
11: aload 3
iconst_m1
invokevirtual org.apache.http.client.utils.URIBuilder.setPort:(I)Lorg/apache/http/client/utils/URIBuilder;
pop
12: StackMap locals:
StackMap stack:
iload 2
ifeq 14
13: aload 3
aconst_null
invokevirtual org.apache.http.client.utils.URIBuilder.setFragment:(Ljava/lang/String;)Lorg/apache/http/client/utils/URIBuilder;
pop
14: StackMap locals:
StackMap stack:
aload 3
invokevirtual org.apache.http.client.utils.URIBuilder.getPath:()Ljava/lang/String;
astore 4
start local 4 15: aload 4
invokestatic org.apache.http.util.TextUtils.isEmpty:(Ljava/lang/CharSequence;)Z
ifeq 18
16: aload 3
ldc "/"
invokevirtual org.apache.http.client.utils.URIBuilder.setPath:(Ljava/lang/String;)Lorg/apache/http/client/utils/URIBuilder;
pop
17: goto 31
18: StackMap locals: java.lang.String
StackMap stack:
new java.lang.StringBuilder
dup
aload 4
invokevirtual java.lang.String.length:()I
invokespecial java.lang.StringBuilder.<init>:(I)V
astore 5
start local 5 19: iconst_0
istore 6
start local 6 20: iconst_0
istore 7
start local 7 21: goto 29
22: StackMap locals: java.lang.StringBuilder int int
StackMap stack:
aload 4
iload 7
invokevirtual java.lang.String.charAt:(I)C
istore 8
start local 8 23: iload 8
bipush 47
if_icmpne 24
iload 6
ifne 25
24: StackMap locals: int
StackMap stack:
aload 5
iload 8
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
25: StackMap locals:
StackMap stack:
iload 8
bipush 47
if_icmpne 26
iconst_1
goto 27
StackMap locals:
StackMap stack:
26: iconst_0
StackMap locals:
StackMap stack: int
27: istore 6
end local 8 28: iinc 7 1
StackMap locals:
StackMap stack:
29: iload 7
aload 4
invokevirtual java.lang.String.length:()I
if_icmplt 22
end local 7 30: aload 3
aload 5
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual org.apache.http.client.utils.URIBuilder.setPath:(Ljava/lang/String;)Lorg/apache/http/client/utils/URIBuilder;
pop
end local 6 end local 5 31: StackMap locals:
StackMap stack:
aload 3
invokevirtual org.apache.http.client.utils.URIBuilder.build:()Ljava/net/URI;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 32 0 uri Ljava/net/URI;
0 32 1 target Lorg/apache/http/HttpHost;
0 32 2 dropFragment Z
4 32 3 uribuilder Lorg/apache/http/client/utils/URIBuilder;
15 32 4 path Ljava/lang/String;
19 31 5 buf Ljava/lang/StringBuilder;
20 31 6 foundSlash Z
21 30 7 i I
23 28 8 ch C
Exceptions:
throws java.net.URISyntaxException
MethodParameters:
Name Flags
uri final
target final
dropFragment final
public static java.net.URI rewriteURI(java.net.URI, org.apache.http.HttpHost);
descriptor: (Ljava/net/URI;Lorg/apache/http/HttpHost;)Ljava/net/URI;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
iconst_0
invokestatic org.apache.http.client.utils.URIUtils.rewriteURI:(Ljava/net/URI;Lorg/apache/http/HttpHost;Z)Ljava/net/URI;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 uri Ljava/net/URI;
0 1 1 target Lorg/apache/http/HttpHost;
Exceptions:
throws java.net.URISyntaxException
MethodParameters:
Name Flags
uri final
target final
public static java.net.URI rewriteURI(java.net.URI);
descriptor: (Ljava/net/URI;)Ljava/net/URI;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
ldc "URI"
invokestatic org.apache.http.util.Args.notNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
pop
1: aload 0
invokevirtual java.net.URI.isOpaque:()Z
ifeq 3
2: aload 0
areturn
3: StackMap locals:
StackMap stack:
new org.apache.http.client.utils.URIBuilder
dup
aload 0
invokespecial org.apache.http.client.utils.URIBuilder.<init>:(Ljava/net/URI;)V
astore 1
start local 1 4: aload 1
invokevirtual org.apache.http.client.utils.URIBuilder.getUserInfo:()Ljava/lang/String;
ifnull 6
5: aload 1
aconst_null
invokevirtual org.apache.http.client.utils.URIBuilder.setUserInfo:(Ljava/lang/String;)Lorg/apache/http/client/utils/URIBuilder;
pop
6: StackMap locals: org.apache.http.client.utils.URIBuilder
StackMap stack:
aload 1
invokevirtual org.apache.http.client.utils.URIBuilder.getPath:()Ljava/lang/String;
invokestatic org.apache.http.util.TextUtils.isEmpty:(Ljava/lang/CharSequence;)Z
ifeq 8
7: aload 1
ldc "/"
invokevirtual org.apache.http.client.utils.URIBuilder.setPath:(Ljava/lang/String;)Lorg/apache/http/client/utils/URIBuilder;
pop
8: StackMap locals:
StackMap stack:
aload 1
invokevirtual org.apache.http.client.utils.URIBuilder.getHost:()Ljava/lang/String;
ifnull 10
9: aload 1
aload 1
invokevirtual org.apache.http.client.utils.URIBuilder.getHost:()Ljava/lang/String;
getstatic java.util.Locale.ROOT:Ljava/util/Locale;
invokevirtual java.lang.String.toLowerCase:(Ljava/util/Locale;)Ljava/lang/String;
invokevirtual org.apache.http.client.utils.URIBuilder.setHost:(Ljava/lang/String;)Lorg/apache/http/client/utils/URIBuilder;
pop
10: StackMap locals:
StackMap stack:
aload 1
aconst_null
invokevirtual org.apache.http.client.utils.URIBuilder.setFragment:(Ljava/lang/String;)Lorg/apache/http/client/utils/URIBuilder;
pop
11: aload 1
invokevirtual org.apache.http.client.utils.URIBuilder.build:()Ljava/net/URI;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 uri Ljava/net/URI;
4 12 1 uribuilder Lorg/apache/http/client/utils/URIBuilder;
Exceptions:
throws java.net.URISyntaxException
MethodParameters:
Name Flags
uri final
public static java.net.URI rewriteURIForRoute(java.net.URI, org.apache.http.conn.routing.RouteInfo);
descriptor: (Ljava/net/URI;Lorg/apache/http/conn/routing/RouteInfo;)Ljava/net/URI;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
ifnonnull 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
aload 1
invokeinterface org.apache.http.conn.routing.RouteInfo.getProxyHost:()Lorg/apache/http/HttpHost;
ifnull 7
aload 1
invokeinterface org.apache.http.conn.routing.RouteInfo.isTunnelled:()Z
ifne 7
3: aload 0
invokevirtual java.net.URI.isAbsolute:()Z
ifeq 5
4: aload 0
invokestatic org.apache.http.client.utils.URIUtils.rewriteURI:(Ljava/net/URI;)Ljava/net/URI;
goto 6
5: StackMap locals:
StackMap stack:
aload 0
aload 1
invokeinterface org.apache.http.conn.routing.RouteInfo.getTargetHost:()Lorg/apache/http/HttpHost;
iconst_1
invokestatic org.apache.http.client.utils.URIUtils.rewriteURI:(Ljava/net/URI;Lorg/apache/http/HttpHost;Z)Ljava/net/URI;
6: StackMap locals:
StackMap stack: java.net.URI
areturn
7: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.net.URI.isAbsolute:()Z
ifeq 8
aload 0
aconst_null
iconst_1
invokestatic org.apache.http.client.utils.URIUtils.rewriteURI:(Ljava/net/URI;Lorg/apache/http/HttpHost;Z)Ljava/net/URI;
goto 9
StackMap locals:
StackMap stack:
8: aload 0
invokestatic org.apache.http.client.utils.URIUtils.rewriteURI:(Ljava/net/URI;)Ljava/net/URI;
StackMap locals:
StackMap stack: java.net.URI
9: areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 uri Ljava/net/URI;
0 10 1 route Lorg/apache/http/conn/routing/RouteInfo;
Exceptions:
throws java.net.URISyntaxException
MethodParameters:
Name Flags
uri final
route final
public static java.net.URI resolve(java.net.URI, java.lang.String);
descriptor: (Ljava/net/URI;Ljava/lang/String;)Ljava/net/URI;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokestatic java.net.URI.create:(Ljava/lang/String;)Ljava/net/URI;
invokestatic org.apache.http.client.utils.URIUtils.resolve:(Ljava/net/URI;Ljava/net/URI;)Ljava/net/URI;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 baseURI Ljava/net/URI;
0 1 1 reference Ljava/lang/String;
MethodParameters:
Name Flags
baseURI final
reference final
public static java.net.URI resolve(java.net.URI, java.net.URI);
descriptor: (Ljava/net/URI;Ljava/net/URI;)Ljava/net/URI;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=6, args_size=2
start local 0 start local 1 0: aload 0
ldc "Base URI"
invokestatic org.apache.http.util.Args.notNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
pop
1: aload 1
ldc "Reference URI"
invokestatic org.apache.http.util.Args.notNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
pop
2: aload 1
invokevirtual java.net.URI.toASCIIString:()Ljava/lang/String;
astore 2
start local 2 3: aload 2
ldc "?"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 10
4: aload 0
invokevirtual java.net.URI.toASCIIString:()Ljava/lang/String;
astore 3
start local 3 5: aload 3
bipush 63
invokevirtual java.lang.String.indexOf:(I)I
istore 4
start local 4 6: iload 4
iconst_m1
if_icmple 7
aload 3
iconst_0
iload 4
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
goto 8
StackMap locals: java.lang.String java.lang.String int
StackMap stack:
7: aload 3
StackMap locals:
StackMap stack: java.lang.String
8: astore 3
9: new java.lang.StringBuilder
dup
aload 3
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic java.net.URI.create:(Ljava/lang/String;)Ljava/net/URI;
areturn
end local 4 end local 3 10: StackMap locals:
StackMap stack:
aload 2
invokevirtual java.lang.String.isEmpty:()Z
istore 3
start local 3 11: iload 3
ifeq 16
12: aload 0
ldc "#"
invokestatic java.net.URI.create:(Ljava/lang/String;)Ljava/net/URI;
invokevirtual java.net.URI.resolve:(Ljava/net/URI;)Ljava/net/URI;
astore 4
start local 4 13: aload 4
invokevirtual java.net.URI.toASCIIString:()Ljava/lang/String;
astore 5
start local 5 14: aload 5
iconst_0
aload 5
bipush 35
invokevirtual java.lang.String.indexOf:(I)I
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
invokestatic java.net.URI.create:(Ljava/lang/String;)Ljava/net/URI;
astore 4
end local 5 15: goto 17
end local 4 16: StackMap locals: int
StackMap stack:
aload 0
aload 1
invokevirtual java.net.URI.resolve:(Ljava/net/URI;)Ljava/net/URI;
astore 4
start local 4 17: StackMap locals: java.net.URI
StackMap stack:
aload 4
invokestatic org.apache.http.client.utils.URIUtils.normalizeSyntax:(Ljava/net/URI;)Ljava/net/URI;
18: areturn
19: StackMap locals:
StackMap stack: java.net.URISyntaxException
astore 5
start local 5 20: new java.lang.IllegalArgumentException
dup
aload 5
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/Throwable;)V
athrow
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 21 0 baseURI Ljava/net/URI;
0 21 1 reference Ljava/net/URI;
3 21 2 s Ljava/lang/String;
5 10 3 baseUri Ljava/lang/String;
6 10 4 i I
11 21 3 emptyReference Z
13 16 4 resolved Ljava/net/URI;
17 21 4 resolved Ljava/net/URI;
14 15 5 resolvedString Ljava/lang/String;
20 21 5 ex Ljava/net/URISyntaxException;
Exception table:
from to target type
17 18 19 Class java.net.URISyntaxException
MethodParameters:
Name Flags
baseURI final
reference final
static java.net.URI normalizeSyntax(java.net.URI);
descriptor: (Ljava/net/URI;)Ljava/net/URI;
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=9, args_size=1
start local 0 0: aload 0
invokevirtual java.net.URI.isOpaque:()Z
ifne 1
aload 0
invokevirtual java.net.URI.getAuthority:()Ljava/lang/String;
ifnonnull 2
1: StackMap locals:
StackMap stack:
aload 0
areturn
2: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.net.URI.isAbsolute:()Z
ldc "Base URI must be absolute"
invokestatic org.apache.http.util.Args.check:(ZLjava/lang/String;)V
3: new org.apache.http.client.utils.URIBuilder
dup
aload 0
invokespecial org.apache.http.client.utils.URIBuilder.<init>:(Ljava/net/URI;)V
astore 1
start local 1 4: aload 1
invokevirtual org.apache.http.client.utils.URIBuilder.getPath:()Ljava/lang/String;
astore 2
start local 2 5: aload 2
ifnull 26
aload 2
ldc "/"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 26
6: aload 2
ldc "/"
invokevirtual java.lang.String.split:(Ljava/lang/String;)[Ljava/lang/String;
astore 3
start local 3 7: new java.util.Stack
dup
invokespecial java.util.Stack.<init>:()V
astore 4
start local 4 8: aload 3
dup
astore 8
arraylength
istore 7
iconst_0
istore 6
goto 17
StackMap locals: java.net.URI org.apache.http.client.utils.URIBuilder java.lang.String java.lang.String[] java.util.Stack top int int java.lang.String[]
StackMap stack:
9: aload 8
iload 6
aaload
astore 5
start local 5 10: aload 5
invokevirtual java.lang.String.isEmpty:()Z
ifne 16
ldc "."
aload 5
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 16
11: ldc ".."
aload 5
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 15
12: aload 4
invokevirtual java.util.Stack.isEmpty:()Z
ifne 16
13: aload 4
invokevirtual java.util.Stack.pop:()Ljava/lang/Object;
pop
14: goto 16
15: StackMap locals: java.net.URI org.apache.http.client.utils.URIBuilder java.lang.String java.lang.String[] java.util.Stack java.lang.String int int java.lang.String[]
StackMap stack:
aload 4
aload 5
invokevirtual java.util.Stack.push:(Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 5 16: StackMap locals: java.net.URI org.apache.http.client.utils.URIBuilder java.lang.String java.lang.String[] java.util.Stack top int int java.lang.String[]
StackMap stack:
iinc 6 1
StackMap locals:
StackMap stack:
17: iload 6
iload 7
if_icmplt 9
18: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 5
start local 5 19: aload 4
invokevirtual java.util.Stack.iterator:()Ljava/util/Iterator;
astore 7
goto 22
StackMap locals: java.net.URI org.apache.http.client.utils.URIBuilder java.lang.String java.lang.String[] java.util.Stack java.lang.StringBuilder top java.util.Iterator
StackMap stack:
20: aload 7
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 6
start local 6 21: aload 5
bipush 47
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
aload 6
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
end local 6 22: StackMap locals:
StackMap stack:
aload 7
invokeinterface java.util.Iterator.hasNext:()Z
ifne 20
23: aload 2
bipush 47
invokevirtual java.lang.String.lastIndexOf:(I)I
aload 2
invokevirtual java.lang.String.length:()I
iconst_1
isub
if_icmpne 25
24: aload 5
bipush 47
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
25: StackMap locals: java.net.URI org.apache.http.client.utils.URIBuilder java.lang.String java.lang.String[] java.util.Stack java.lang.StringBuilder
StackMap stack:
aload 1
aload 5
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual org.apache.http.client.utils.URIBuilder.setPath:(Ljava/lang/String;)Lorg/apache/http/client/utils/URIBuilder;
pop
end local 5 end local 4 end local 3 26: StackMap locals:
StackMap stack:
aload 1
invokevirtual org.apache.http.client.utils.URIBuilder.getScheme:()Ljava/lang/String;
ifnull 28
27: aload 1
aload 1
invokevirtual org.apache.http.client.utils.URIBuilder.getScheme:()Ljava/lang/String;
getstatic java.util.Locale.ROOT:Ljava/util/Locale;
invokevirtual java.lang.String.toLowerCase:(Ljava/util/Locale;)Ljava/lang/String;
invokevirtual org.apache.http.client.utils.URIBuilder.setScheme:(Ljava/lang/String;)Lorg/apache/http/client/utils/URIBuilder;
pop
28: StackMap locals:
StackMap stack:
aload 1
invokevirtual org.apache.http.client.utils.URIBuilder.getHost:()Ljava/lang/String;
ifnull 30
29: aload 1
aload 1
invokevirtual org.apache.http.client.utils.URIBuilder.getHost:()Ljava/lang/String;
getstatic java.util.Locale.ROOT:Ljava/util/Locale;
invokevirtual java.lang.String.toLowerCase:(Ljava/util/Locale;)Ljava/lang/String;
invokevirtual org.apache.http.client.utils.URIBuilder.setHost:(Ljava/lang/String;)Lorg/apache/http/client/utils/URIBuilder;
pop
30: StackMap locals:
StackMap stack:
aload 1
invokevirtual org.apache.http.client.utils.URIBuilder.build:()Ljava/net/URI;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 31 0 uri Ljava/net/URI;
4 31 1 builder Lorg/apache/http/client/utils/URIBuilder;
5 31 2 path Ljava/lang/String;
7 26 3 inputSegments [Ljava/lang/String;
8 26 4 outputSegments Ljava/util/Stack<Ljava/lang/String;>;
10 16 5 inputSegment Ljava/lang/String;
19 26 5 outputBuffer Ljava/lang/StringBuilder;
21 22 6 outputSegment Ljava/lang/String;
Exceptions:
throws java.net.URISyntaxException
MethodParameters:
Name Flags
uri final
public static org.apache.http.HttpHost (java.net.URI);
descriptor: (Ljava/net/URI;)Lorg/apache/http/HttpHost;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=9, args_size=1
start local 0 0: aload 0
ifnonnull 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
aconst_null
astore 1
start local 1 3: aload 0
invokevirtual java.net.URI.isAbsolute:()Z
ifeq 36
4: aload 0
invokevirtual java.net.URI.getPort:()I
istore 2
start local 2 5: aload 0
invokevirtual java.net.URI.getHost:()Ljava/lang/String;
astore 3
start local 3 6: aload 3
ifnonnull 31
7: aload 0
invokevirtual java.net.URI.getAuthority:()Ljava/lang/String;
astore 3
8: aload 3
ifnull 31
9: aload 3
bipush 64
invokevirtual java.lang.String.indexOf:(I)I
istore 4
start local 4 10: iload 4
iflt 15
11: aload 3
invokevirtual java.lang.String.length:()I
iload 4
iconst_1
iadd
if_icmple 14
12: aload 3
iload 4
iconst_1
iadd
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 3
13: goto 15
14: StackMap locals: java.net.URI org.apache.http.HttpHost int java.lang.String int
StackMap stack:
aconst_null
astore 3
15: StackMap locals:
StackMap stack:
aload 3
ifnull 31
16: aload 3
bipush 58
invokevirtual java.lang.String.indexOf:(I)I
istore 5
start local 5 17: iload 5
iflt 31
18: iload 5
iconst_1
iadd
istore 6
start local 6 19: iconst_0
istore 7
start local 7 20: iload 6
istore 8
start local 8 21: goto 25
22: StackMap locals: java.net.URI org.apache.http.HttpHost int java.lang.String int int int int int
StackMap stack:
aload 3
iload 8
invokevirtual java.lang.String.charAt:(I)C
invokestatic java.lang.Character.isDigit:(C)Z
ifeq 26
23: iinc 7 1
24: iinc 8 1
StackMap locals:
StackMap stack:
25: iload 8
aload 3
invokevirtual java.lang.String.length:()I
if_icmplt 22
end local 8 26: StackMap locals:
StackMap stack:
iload 7
ifle 30
27: aload 3
iload 6
iload 6
iload 7
iadd
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;)I
istore 2
28: goto 30
StackMap locals:
StackMap stack: java.lang.NumberFormatException
29: pop
30: StackMap locals:
StackMap stack:
aload 3
iconst_0
iload 5
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 3
end local 7 end local 6 end local 5 end local 4 31: StackMap locals: java.net.URI org.apache.http.HttpHost int java.lang.String
StackMap stack:
aload 0
invokevirtual java.net.URI.getScheme:()Ljava/lang/String;
astore 4
start local 4 32: aload 3
invokestatic org.apache.http.util.TextUtils.isBlank:(Ljava/lang/CharSequence;)Z
ifne 36
33: new org.apache.http.HttpHost
dup
aload 3
iload 2
aload 4
invokespecial org.apache.http.HttpHost.<init>:(Ljava/lang/String;ILjava/lang/String;)V
astore 1
34: goto 36
StackMap locals: java.net.URI org.apache.http.HttpHost int java.lang.String java.lang.String
StackMap stack: java.lang.IllegalArgumentException
35: pop
end local 4 end local 3 end local 2 36: StackMap locals:
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 37 0 uri Ljava/net/URI;
3 37 1 target Lorg/apache/http/HttpHost;
5 36 2 port I
6 36 3 host Ljava/lang/String;
10 31 4 at I
17 31 5 colon I
19 31 6 pos I
20 31 7 len I
21 26 8 i I
32 36 4 scheme Ljava/lang/String;
Exception table:
from to target type
27 28 29 Class java.lang.NumberFormatException
33 34 35 Class java.lang.IllegalArgumentException
MethodParameters:
Name Flags
uri final
public static java.net.URI resolve(java.net.URI, org.apache.http.HttpHost, java.util.List<java.net.URI>);
descriptor: (Ljava/net/URI;Lorg/apache/http/HttpHost;Ljava/util/List;)Ljava/net/URI;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 0
ldc "Request URI"
invokestatic org.apache.http.util.Args.notNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
pop
1: aload 2
ifnull 2
aload 2
invokeinterface java.util.List.isEmpty:()Z
ifeq 4
2: StackMap locals:
StackMap stack:
new org.apache.http.client.utils.URIBuilder
dup
aload 0
invokespecial org.apache.http.client.utils.URIBuilder.<init>:(Ljava/net/URI;)V
astore 3
start local 3 3: goto 12
end local 3 4: StackMap locals:
StackMap stack:
new org.apache.http.client.utils.URIBuilder
dup
aload 2
aload 2
invokeinterface java.util.List.size:()I
iconst_1
isub
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast java.net.URI
invokespecial org.apache.http.client.utils.URIBuilder.<init>:(Ljava/net/URI;)V
astore 3
start local 3 5: aload 3
invokevirtual org.apache.http.client.utils.URIBuilder.getFragment:()Ljava/lang/String;
astore 4
start local 4 6: aload 2
invokeinterface java.util.List.size:()I
iconst_1
isub
istore 5
start local 5 7: goto 10
8: StackMap locals: org.apache.http.client.utils.URIBuilder java.lang.String int
StackMap stack:
aload 2
iload 5
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast java.net.URI
invokevirtual java.net.URI.getFragment:()Ljava/lang/String;
astore 4
9: iinc 5 -1
StackMap locals:
StackMap stack:
10: aload 4
ifnonnull 11
iload 5
ifge 8
end local 5 11: StackMap locals:
StackMap stack:
aload 3
aload 4
invokevirtual org.apache.http.client.utils.URIBuilder.setFragment:(Ljava/lang/String;)Lorg/apache/http/client/utils/URIBuilder;
pop
end local 4 12: StackMap locals:
StackMap stack:
aload 3
invokevirtual org.apache.http.client.utils.URIBuilder.getFragment:()Ljava/lang/String;
ifnonnull 14
13: aload 3
aload 0
invokevirtual java.net.URI.getFragment:()Ljava/lang/String;
invokevirtual org.apache.http.client.utils.URIBuilder.setFragment:(Ljava/lang/String;)Lorg/apache/http/client/utils/URIBuilder;
pop
14: StackMap locals:
StackMap stack:
aload 1
ifnull 18
aload 3
invokevirtual org.apache.http.client.utils.URIBuilder.isAbsolute:()Z
ifne 18
15: aload 3
aload 1
invokevirtual org.apache.http.HttpHost.getSchemeName:()Ljava/lang/String;
invokevirtual org.apache.http.client.utils.URIBuilder.setScheme:(Ljava/lang/String;)Lorg/apache/http/client/utils/URIBuilder;
pop
16: aload 3
aload 1
invokevirtual org.apache.http.HttpHost.getHostName:()Ljava/lang/String;
invokevirtual org.apache.http.client.utils.URIBuilder.setHost:(Ljava/lang/String;)Lorg/apache/http/client/utils/URIBuilder;
pop
17: aload 3
aload 1
invokevirtual org.apache.http.HttpHost.getPort:()I
invokevirtual org.apache.http.client.utils.URIBuilder.setPort:(I)Lorg/apache/http/client/utils/URIBuilder;
pop
18: StackMap locals:
StackMap stack:
aload 3
invokevirtual org.apache.http.client.utils.URIBuilder.build:()Ljava/net/URI;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 originalURI Ljava/net/URI;
0 19 1 target Lorg/apache/http/HttpHost;
0 19 2 redirects Ljava/util/List<Ljava/net/URI;>;
3 4 3 uribuilder Lorg/apache/http/client/utils/URIBuilder;
5 19 3 uribuilder Lorg/apache/http/client/utils/URIBuilder;
6 12 4 frag Ljava/lang/String;
7 11 5 i I
Exceptions:
throws java.net.URISyntaxException
Signature: (Ljava/net/URI;Lorg/apache/http/HttpHost;Ljava/util/List<Ljava/net/URI;>;)Ljava/net/URI;
MethodParameters:
Name Flags
originalURI final
target final
redirects final
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/http/client/utils/URIUtils;
}
SourceFile: "URIUtils.java"