public class org.apache.tomcat.util.http.RequestUtil
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.tomcat.util.http.RequestUtil
super_class: java.lang.Object
{
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/tomcat/util/http/RequestUtil;
public static java.lang.String normalize(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_1
invokestatic org.apache.tomcat.util.http.RequestUtil.normalize:(Ljava/lang/String;Z)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 path Ljava/lang/String;
MethodParameters:
Name Flags
path
public static java.lang.String normalize(java.lang.String, boolean);
descriptor: (Ljava/lang/String;Z)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=6, args_size=2
start local 0 start local 1 0: aload 0
ifnonnull 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
aload 0
astore 2
start local 2 3: iload 1
ifeq 5
aload 2
bipush 92
invokevirtual java.lang.String.indexOf:(I)I
iflt 5
4: aload 2
bipush 92
bipush 47
invokevirtual java.lang.String.replace:(CC)Ljava/lang/String;
astore 2
5: StackMap locals: java.lang.String
StackMap stack:
aload 2
ldc "/"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifne 7
6: new java.lang.StringBuilder
dup
ldc "/"
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;
astore 2
7: StackMap locals:
StackMap stack:
iconst_0
istore 3
start local 3 8: aload 2
ldc "/."
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifne 9
aload 2
ldc "/.."
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 11
9: StackMap locals: int
StackMap stack:
new java.lang.StringBuilder
dup
aload 2
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "/"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 2
10: iconst_1
istore 3
11: StackMap locals:
StackMap stack:
aload 2
ldc "//"
invokevirtual java.lang.String.indexOf:(Ljava/lang/String;)I
istore 4
start local 4 12: iload 4
ifge 14
13: goto 16
14: StackMap locals: int
StackMap stack:
new java.lang.StringBuilder
dup
aload 2
iconst_0
iload 4
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
iload 4
iconst_1
iadd
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 2
end local 4 15: goto 11
16: StackMap locals:
StackMap stack:
aload 2
ldc "/./"
invokevirtual java.lang.String.indexOf:(Ljava/lang/String;)I
istore 4
start local 4 17: iload 4
ifge 19
18: goto 21
19: StackMap locals: int
StackMap stack:
new java.lang.StringBuilder
dup
aload 2
iconst_0
iload 4
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
iload 4
iconst_2
iadd
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 2
end local 4 20: goto 16
21: StackMap locals:
StackMap stack:
aload 2
ldc "/../"
invokevirtual java.lang.String.indexOf:(Ljava/lang/String;)I
istore 4
start local 4 22: iload 4
ifge 24
23: goto 29
24: StackMap locals: int
StackMap stack:
iload 4
ifne 26
25: aconst_null
areturn
26: StackMap locals:
StackMap stack:
aload 2
bipush 47
iload 4
iconst_1
isub
invokevirtual java.lang.String.lastIndexOf:(II)I
istore 5
start local 5 27: new java.lang.StringBuilder
dup
aload 2
iconst_0
iload 5
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
iload 4
iconst_3
iadd
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 2
end local 5 end local 4 28: goto 21
29: StackMap locals:
StackMap stack:
aload 2
invokevirtual java.lang.String.length:()I
iconst_1
if_icmple 31
iload 3
ifeq 31
30: aload 2
iconst_0
aload 2
invokevirtual java.lang.String.length:()I
iconst_1
isub
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 2
31: StackMap locals:
StackMap stack:
aload 2
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 32 0 path Ljava/lang/String;
0 32 1 replaceBackSlash Z
3 32 2 normalized Ljava/lang/String;
8 32 3 addedTrailingSlash Z
12 15 4 index I
17 20 4 index I
22 28 4 index I
27 28 5 index2 I
MethodParameters:
Name Flags
path
replaceBackSlash
}
SourceFile: "RequestUtil.java"