public class io.undertow.util.URLUtils
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.undertow.util.URLUtils
super_class: java.lang.Object
{
private static final char PATH_SEPARATOR;
descriptor: C
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 47
private static final io.undertow.util.URLUtils$QueryStringParser QUERY_STRING_PARSER;
descriptor: Lio/undertow/util/URLUtils$QueryStringParser;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final io.undertow.util.URLUtils$QueryStringParser PATH_PARAM_PARSER;
descriptor: Lio/undertow/util/URLUtils$QueryStringParser;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.util.regex.Pattern SCHEME_PATTERN;
descriptor: Ljava/util/regex/Pattern;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=0, args_size=0
0: new io.undertow.util.URLUtils$1
dup
bipush 38
iconst_0
invokespecial io.undertow.util.URLUtils$1.<init>:(CZ)V
putstatic io.undertow.util.URLUtils.QUERY_STRING_PARSER:Lio/undertow/util/URLUtils$QueryStringParser;
1: new io.undertow.util.URLUtils$2
dup
bipush 59
iconst_1
invokespecial io.undertow.util.URLUtils$2.<init>:(CZ)V
putstatic io.undertow.util.URLUtils.PATH_PARAM_PARSER:Lio/undertow/util/URLUtils$QueryStringParser;
2: ldc "^[a-zA-Z][a-zA-Z0-9+-.]*:.*"
invokestatic java.util.regex.Pattern.compile:(Ljava/lang/String;)Ljava/util/regex/Pattern;
putstatic io.undertow.util.URLUtils.SCHEME_PATTERN:Ljava/util/regex/Pattern;
return
LocalVariableTable:
Start End Slot Name Signature
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 Lio/undertow/util/URLUtils;
public static void parseQueryString(java.lang.String, io.undertow.server.HttpServerExchange, java.lang.String, boolean, int);
descriptor: (Ljava/lang/String;Lio/undertow/server/HttpServerExchange;Ljava/lang/String;ZI)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: getstatic io.undertow.util.URLUtils.QUERY_STRING_PARSER:Lio/undertow/util/URLUtils$QueryStringParser;
aload 0
aload 1
aload 2
iload 3
iload 4
invokevirtual io.undertow.util.URLUtils$QueryStringParser.parse:(Ljava/lang/String;Lio/undertow/server/HttpServerExchange;Ljava/lang/String;ZI)I
pop
1: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 string Ljava/lang/String;
0 2 1 exchange Lio/undertow/server/HttpServerExchange;
0 2 2 charset Ljava/lang/String;
0 2 3 doDecode Z
0 2 4 maxParameters I
Exceptions:
throws io.undertow.util.ParameterLimitException
MethodParameters:
Name Flags
string final
exchange final
charset final
doDecode final
maxParameters
public static void parsePathParms(java.lang.String, io.undertow.server.HttpServerExchange, java.lang.String, boolean, int);
descriptor: (Ljava/lang/String;Lio/undertow/server/HttpServerExchange;Ljava/lang/String;ZI)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
aload 1
aload 2
iload 3
iload 4
invokestatic io.undertow.util.URLUtils.parsePathParams:(Ljava/lang/String;Lio/undertow/server/HttpServerExchange;Ljava/lang/String;ZI)I
pop
1: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 string Ljava/lang/String;
0 2 1 exchange Lio/undertow/server/HttpServerExchange;
0 2 2 charset Ljava/lang/String;
0 2 3 doDecode Z
0 2 4 maxParameters I
Exceptions:
throws io.undertow.util.ParameterLimitException
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
string final
exchange final
charset final
doDecode final
maxParameters
public static int parsePathParams(java.lang.String, io.undertow.server.HttpServerExchange, java.lang.String, boolean, int);
descriptor: (Ljava/lang/String;Lio/undertow/server/HttpServerExchange;Ljava/lang/String;ZI)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: getstatic io.undertow.util.URLUtils.PATH_PARAM_PARSER:Lio/undertow/util/URLUtils$QueryStringParser;
aload 0
aload 1
aload 2
iload 3
iload 4
invokevirtual io.undertow.util.URLUtils$QueryStringParser.parse:(Ljava/lang/String;Lio/undertow/server/HttpServerExchange;Ljava/lang/String;ZI)I
ireturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 string Ljava/lang/String;
0 1 1 exchange Lio/undertow/server/HttpServerExchange;
0 1 2 charset Ljava/lang/String;
0 1 3 doDecode Z
0 1 4 maxParameters I
Exceptions:
throws io.undertow.util.ParameterLimitException
MethodParameters:
Name Flags
string final
exchange final
charset final
doDecode final
maxParameters
public static java.lang.String decode(java.lang.String, java.lang.String, boolean, java.lang.StringBuilder);
descriptor: (Ljava/lang/String;Ljava/lang/String;ZLjava/lang/StringBuilder;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
iload 2
iconst_1
aload 3
invokestatic io.undertow.util.URLUtils.decode:(Ljava/lang/String;Ljava/lang/String;ZZLjava/lang/StringBuilder;)Ljava/lang/String;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 s Ljava/lang/String;
0 1 1 enc Ljava/lang/String;
0 1 2 decodeSlash Z
0 1 3 buffer Ljava/lang/StringBuilder;
MethodParameters:
Name Flags
s
enc
decodeSlash
buffer
public static java.lang.String decode(java.lang.String, java.lang.String, boolean, boolean, java.lang.StringBuilder);
descriptor: (Ljava/lang/String;Ljava/lang/String;ZZLjava/lang/StringBuilder;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=14, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 4
iconst_0
invokevirtual java.lang.StringBuilder.setLength:(I)V
1: iconst_0
istore 5
start local 5 2: aload 0
invokevirtual java.lang.String.length:()I
istore 6
start local 6 3: iconst_0
istore 7
start local 7 4: goto 91
5: StackMap locals: int int int
StackMap stack:
aload 0
iload 7
invokevirtual java.lang.String.charAt:(I)C
istore 8
start local 8 6: iload 8
bipush 43
if_icmpne 15
7: iload 3
ifeq 12
8: aload 4
bipush 32
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
9: iinc 7 1
10: iconst_1
istore 5
11: goto 91
12: StackMap locals: int
StackMap stack:
iinc 7 1
13: aload 4
iload 8
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
14: goto 91
StackMap locals:
StackMap stack:
15: iload 8
bipush 37
if_icmpeq 16
iload 8
bipush 127
if_icmple 89
16: StackMap locals:
StackMap stack:
iload 6
iload 7
isub
iconst_1
iadd
newarray 8
astore 9
start local 9 17: iconst_0
istore 10
start local 10 18: goto 79
19: StackMap locals: byte[] int
StackMap stack:
iload 8
bipush 37
if_icmpne 59
20: iload 7
iconst_2
iadd
aload 0
invokevirtual java.lang.String.length:()I
if_icmplt 22
21: getstatic io.undertow.UndertowMessages.MESSAGES:Lio/undertow/UndertowMessages;
aload 0
aload 1
aconst_null
invokeinterface io.undertow.UndertowMessages.failedToDecodeURL:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Exception;)Lio/undertow/util/UrlDecodeException;
athrow
22: StackMap locals:
StackMap stack:
aload 0
iload 7
iconst_1
iadd
invokevirtual java.lang.String.charAt:(I)C
invokestatic java.lang.Character.toLowerCase:(C)C
istore 11
start local 11 23: aload 0
iload 7
iconst_2
iadd
invokevirtual java.lang.String.charAt:(I)C
invokestatic java.lang.Character.toLowerCase:(C)C
istore 12
start local 12 24: iload 2
ifne 35
iload 11
bipush 50
if_icmpne 25
iload 12
bipush 102
if_icmpeq 26
StackMap locals: int int
StackMap stack:
25: iload 11
bipush 53
if_icmpne 35
iload 12
bipush 99
if_icmpne 35
26: StackMap locals:
StackMap stack:
iload 10
iconst_2
iadd
aload 9
arraylength
if_icmplt 28
27: aload 9
invokestatic io.undertow.util.URLUtils.expandBytes:([B)[B
astore 9
28: StackMap locals:
StackMap stack:
aload 9
iload 10
iinc 10 1
iload 8
i2b
bastore
29: aload 9
iload 10
iinc 10 1
aload 0
iload 7
iconst_1
iadd
invokevirtual java.lang.String.charAt:(I)C
i2b
bastore
30: aload 9
iload 10
iinc 10 1
aload 0
iload 7
iconst_2
iadd
invokevirtual java.lang.String.charAt:(I)C
i2b
bastore
31: iinc 7 3
32: iload 7
iload 6
if_icmpge 79
33: aload 0
iload 7
invokevirtual java.lang.String.charAt:(I)C
istore 8
34: goto 79
35: StackMap locals:
StackMap stack:
iconst_0
istore 13
start local 13 36: iload 11
bipush 48
if_icmplt 39
iload 11
bipush 57
if_icmpgt 39
37: iload 11
bipush 48
isub
iconst_4
ishl
istore 13
38: goto 43
StackMap locals: int
StackMap stack:
39: iload 11
bipush 97
if_icmplt 42
iload 11
bipush 102
if_icmpgt 42
40: iload 11
bipush 97
isub
bipush 10
iadd
iconst_4
ishl
istore 13
41: goto 43
42: StackMap locals:
StackMap stack:
getstatic io.undertow.UndertowMessages.MESSAGES:Lio/undertow/UndertowMessages;
aload 0
aload 1
aconst_null
invokeinterface io.undertow.UndertowMessages.failedToDecodeURL:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Exception;)Lio/undertow/util/UrlDecodeException;
athrow
43: StackMap locals:
StackMap stack:
iload 12
bipush 48
if_icmplt 46
iload 12
bipush 57
if_icmpgt 46
44: iload 13
iload 12
bipush 48
isub
iadd
istore 13
45: goto 50
StackMap locals:
StackMap stack:
46: iload 12
bipush 97
if_icmplt 49
iload 12
bipush 102
if_icmpgt 49
47: iload 13
iload 12
bipush 97
isub
bipush 10
iadd
iadd
istore 13
48: goto 50
49: StackMap locals:
StackMap stack:
getstatic io.undertow.UndertowMessages.MESSAGES:Lio/undertow/UndertowMessages;
aload 0
aload 1
aconst_null
invokeinterface io.undertow.UndertowMessages.failedToDecodeURL:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Exception;)Lio/undertow/util/UrlDecodeException;
athrow
50: StackMap locals:
StackMap stack:
iload 13
ifge 52
51: getstatic io.undertow.UndertowMessages.MESSAGES:Lio/undertow/UndertowMessages;
aload 0
aload 1
aconst_null
invokeinterface io.undertow.UndertowMessages.failedToDecodeURL:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Exception;)Lio/undertow/util/UrlDecodeException;
athrow
52: StackMap locals:
StackMap stack:
iload 10
aload 9
arraylength
if_icmpne 54
53: aload 9
invokestatic io.undertow.util.URLUtils.expandBytes:([B)[B
astore 9
54: StackMap locals:
StackMap stack:
aload 9
iload 10
iinc 10 1
iload 13
i2b
bastore
55: iinc 7 3
56: iload 7
iload 6
if_icmpge 79
57: aload 0
iload 7
invokevirtual java.lang.String.charAt:(I)C
istore 8
end local 13 end local 12 end local 11 58: goto 79
StackMap locals:
StackMap stack:
59: iload 8
bipush 43
if_icmpne 67
iload 3
ifeq 67
60: iload 10
aload 9
arraylength
if_icmpne 62
61: aload 9
invokestatic io.undertow.util.URLUtils.expandBytes:([B)[B
astore 9
62: StackMap locals:
StackMap stack:
aload 9
iload 10
iinc 10 1
bipush 32
bastore
63: iinc 7 1
64: iload 7
iload 6
if_icmpge 79
65: aload 0
iload 7
invokevirtual java.lang.String.charAt:(I)C
istore 8
66: goto 79
67: StackMap locals:
StackMap stack:
iload 10
aload 9
arraylength
if_icmpne 69
68: aload 9
invokestatic io.undertow.util.URLUtils.expandBytes:([B)[B
astore 9
69: StackMap locals:
StackMap stack:
iinc 7 1
70: iload 8
bipush 8
ishr
ifeq 76
71: aload 9
iload 10
iinc 10 1
iload 8
bipush 8
ishr
i2b
bastore
72: iload 10
aload 9
arraylength
if_icmpne 74
73: aload 9
invokestatic io.undertow.util.URLUtils.expandBytes:([B)[B
astore 9
74: StackMap locals:
StackMap stack:
aload 9
iload 10
iinc 10 1
iload 8
i2b
bastore
75: goto 77
76: StackMap locals:
StackMap stack:
aload 9
iload 10
iinc 10 1
iload 8
i2b
bastore
77: StackMap locals:
StackMap stack:
iload 7
iload 6
if_icmpge 79
78: aload 0
iload 7
invokevirtual java.lang.String.charAt:(I)C
istore 8
79: StackMap locals:
StackMap stack:
iload 7
iload 6
if_icmplt 19
80: new java.lang.String
dup
aload 9
iconst_0
iload 10
aload 1
invokespecial java.lang.String.<init>:([BIILjava/lang/String;)V
astore 11
start local 11 81: aload 4
aload 11
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
end local 11 end local 10 end local 9 82: goto 87
StackMap locals: java.lang.String java.lang.String int int java.lang.StringBuilder int int int int
StackMap stack: java.lang.NumberFormatException
83: astore 9
start local 9 84: getstatic io.undertow.UndertowMessages.MESSAGES:Lio/undertow/UndertowMessages;
aload 0
aload 1
aload 9
invokeinterface io.undertow.UndertowMessages.failedToDecodeURL:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Exception;)Lio/undertow/util/UrlDecodeException;
athrow
end local 9 85: StackMap locals:
StackMap stack: java.io.UnsupportedEncodingException
astore 9
start local 9 86: getstatic io.undertow.UndertowMessages.MESSAGES:Lio/undertow/UndertowMessages;
aload 0
aload 1
aload 9
invokeinterface io.undertow.UndertowMessages.failedToDecodeURL:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Exception;)Lio/undertow/util/UrlDecodeException;
athrow
end local 9 87: StackMap locals:
StackMap stack:
iconst_1
istore 5
88: goto 92
89: StackMap locals:
StackMap stack:
aload 4
iload 8
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
90: iinc 7 1
end local 8 91: StackMap locals:
StackMap stack:
iload 7
iload 6
if_icmplt 5
92: StackMap locals:
StackMap stack:
iload 5
ifeq 93
aload 4
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
goto 94
StackMap locals:
StackMap stack:
93: aload 0
StackMap locals:
StackMap stack: java.lang.String
94: areturn
end local 7 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 95 0 s Ljava/lang/String;
0 95 1 enc Ljava/lang/String;
0 95 2 decodeSlash Z
0 95 3 formEncoding Z
0 95 4 buffer Ljava/lang/StringBuilder;
2 95 5 needToChange Z
3 95 6 numChars I
4 95 7 i I
6 91 8 c C
17 82 9 bytes [B
18 82 10 pos I
23 58 11 p1 C
24 58 12 p2 C
36 58 13 v I
81 82 11 decoded Ljava/lang/String;
84 85 9 e Ljava/lang/NumberFormatException;
86 87 9 e Ljava/io/UnsupportedEncodingException;
Exception table:
from to target type
16 82 83 Class java.lang.NumberFormatException
16 82 85 Class java.io.UnsupportedEncodingException
MethodParameters:
Name Flags
s
enc
decodeSlash
formEncoding
buffer
private static byte[] expandBytes(byte[]);
descriptor: ([B)[B
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: aload 0
arraylength
bipush 10
iadd
newarray 8
astore 1
start local 1 1: aload 0
iconst_0
aload 1
iconst_0
aload 0
arraylength
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
2: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 bytes [B
1 3 1 newBytes [B
MethodParameters:
Name Flags
bytes
public static java.lang.String normalizeSlashes(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=3, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
aload 0
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
astore 1
start local 1 1: iconst_0
istore 2
start local 2 2: goto 5
3: StackMap locals: java.lang.StringBuilder int
StackMap stack:
aload 1
aload 1
invokevirtual java.lang.StringBuilder.length:()I
iconst_1
isub
invokevirtual java.lang.StringBuilder.deleteCharAt:(I)Ljava/lang/StringBuilder;
pop
4: iconst_1
istore 2
5: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.lang.StringBuilder.length:()I
ifle 6
aload 1
invokevirtual java.lang.StringBuilder.length:()I
iconst_1
if_icmpeq 6
bipush 47
aload 1
aload 1
invokevirtual java.lang.StringBuilder.length:()I
iconst_1
isub
invokevirtual java.lang.StringBuilder.charAt:(I)C
if_icmpeq 3
6: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.lang.StringBuilder.length:()I
ifeq 7
bipush 47
aload 1
iconst_0
invokevirtual java.lang.StringBuilder.charAt:(I)C
if_icmpeq 9
7: StackMap locals:
StackMap stack:
aload 1
iconst_0
bipush 47
invokevirtual java.lang.StringBuilder.insert:(IC)Ljava/lang/StringBuilder;
pop
8: iconst_1
istore 2
9: StackMap locals:
StackMap stack:
iload 2
ifeq 11
10: aload 1
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
11: StackMap locals:
StackMap stack:
aload 0
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 path Ljava/lang/String;
1 12 1 builder Ljava/lang/StringBuilder;
2 12 2 modified Z
MethodParameters:
Name Flags
path final
public static boolean isAbsoluteUrl(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
ifnull 2
aload 0
invokevirtual java.lang.String.length:()I
ifle 2
aload 0
ldc ":"
invokevirtual java.lang.String.contains:(Ljava/lang/CharSequence;)Z
ifeq 2
1: getstatic io.undertow.util.URLUtils.SCHEME_PATTERN:Ljava/util/regex/Pattern;
aload 0
invokevirtual java.util.regex.Pattern.matcher:(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
invokevirtual java.util.regex.Matcher.matches:()Z
ireturn
2: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 location Ljava/lang/String;
MethodParameters:
Name Flags
location
}
SourceFile: "URLUtils.java"
NestMembers:
io.undertow.util.URLUtils$1 io.undertow.util.URLUtils$2 io.undertow.util.URLUtils$QueryStringParser
InnerClasses:
io.undertow.util.URLUtils$1
io.undertow.util.URLUtils$2
private abstract QueryStringParser = io.undertow.util.URLUtils$QueryStringParser of io.undertow.util.URLUtils