class jakarta.servlet.http.CookieNameValidator
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: jakarta.servlet.http.CookieNameValidator
super_class: java.lang.Object
{
private static final java.lang.String LSTRING_FILE;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "jakarta.servlet.http.LocalStrings"
protected static final java.util.ResourceBundle lStrings;
descriptor: Ljava/util/ResourceBundle;
flags: (0x001c) ACC_PROTECTED, ACC_STATIC, ACC_FINAL
protected final java.util.BitSet allowed;
descriptor: Ljava/util/BitSet;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc "jakarta.servlet.http.LocalStrings"
invokestatic java.util.ResourceBundle.getBundle:(Ljava/lang/String;)Ljava/util/ResourceBundle;
putstatic jakarta.servlet.http.CookieNameValidator.lStrings:Ljava/util/ResourceBundle;
return
LocalVariableTable:
Start End Slot Name Signature
protected void <init>(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.BitSet
dup
sipush 128
invokespecial java.util.BitSet.<init>:(I)V
putfield jakarta.servlet.http.CookieNameValidator.allowed:Ljava/util/BitSet;
2: aload 0
getfield jakarta.servlet.http.CookieNameValidator.allowed:Ljava/util/BitSet;
bipush 32
bipush 127
invokevirtual java.util.BitSet.set:(II)V
3: iconst_0
istore 2
start local 2 4: goto 8
5: StackMap locals: jakarta.servlet.http.CookieNameValidator java.lang.String int
StackMap stack:
aload 1
iload 2
invokevirtual java.lang.String.charAt:(I)C
istore 3
start local 3 6: aload 0
getfield jakarta.servlet.http.CookieNameValidator.allowed:Ljava/util/BitSet;
iload 3
invokevirtual java.util.BitSet.clear:(I)V
end local 3 7: iinc 2 1
StackMap locals:
StackMap stack:
8: iload 2
aload 1
invokevirtual java.lang.String.length:()I
if_icmplt 5
end local 2 9: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Ljakarta/servlet/http/CookieNameValidator;
0 10 1 separators Ljava/lang/String;
4 9 2 i I
6 7 3 ch C
MethodParameters:
Name Flags
separators
void validate(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0000)
Code:
stack=7, locals=3, args_size=2
start local 0 start local 1 0: aload 1
ifnull 1
aload 1
invokevirtual java.lang.String.length:()I
ifne 2
1: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
getstatic jakarta.servlet.http.CookieNameValidator.lStrings:Ljava/util/ResourceBundle;
ldc "err.cookie_name_blank"
invokevirtual java.util.ResourceBundle.getString:(Ljava/lang/String;)Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual jakarta.servlet.http.CookieNameValidator.isToken:(Ljava/lang/String;)Z
ifne 5
3: getstatic jakarta.servlet.http.CookieNameValidator.lStrings:Ljava/util/ResourceBundle;
ldc "err.cookie_name_is_token"
invokevirtual java.util.ResourceBundle.getString:(Ljava/lang/String;)Ljava/lang/String;
astore 2
start local 2 4: new java.lang.IllegalArgumentException
dup
aload 2
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 1
aastore
invokestatic java.text.MessageFormat.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
end local 2 5: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljakarta/servlet/http/CookieNameValidator;
0 6 1 name Ljava/lang/String;
4 5 2 errMsg Ljava/lang/String;
MethodParameters:
Name Flags
name
private boolean isToken(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=5, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.lang.String.length:()I
istore 2
start local 2 1: iconst_0
istore 3
start local 3 2: goto 7
3: StackMap locals: int int
StackMap stack:
aload 1
iload 3
invokevirtual java.lang.String.charAt:(I)C
istore 4
start local 4 4: aload 0
getfield jakarta.servlet.http.CookieNameValidator.allowed:Ljava/util/BitSet;
iload 4
invokevirtual java.util.BitSet.get:(I)Z
ifne 6
5: iconst_0
ireturn
end local 4 6: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
7: iload 3
iload 2
if_icmplt 3
end local 3 8: iconst_1
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljakarta/servlet/http/CookieNameValidator;
0 9 1 possibleToken Ljava/lang/String;
1 9 2 len I
2 8 3 i I
4 6 4 c C
MethodParameters:
Name Flags
possibleToken
}
SourceFile: "Cookie.java"