public class jakarta.servlet.http.Cookie implements java.lang.Cloneable, java.io.Serializable
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: jakarta.servlet.http.Cookie
super_class: java.lang.Object
{
private static final jakarta.servlet.http.CookieNameValidator validation;
descriptor: Ljakarta/servlet/http/CookieNameValidator;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final long serialVersionUID;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 1
private final java.lang.String name;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private java.lang.String value;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private int version;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private java.lang.String ;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private java.lang.String domain;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private int maxAge;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private java.lang.String path;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private boolean secure;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private boolean httpOnly;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=5, args_size=0
0: invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
ifnonnull 8
1: ldc "org.apache.catalina.STRICT_SERVLET_COMPLIANCE"
2: invokestatic java.lang.Boolean.getBoolean:(Ljava/lang/String;)Z
istore 0
start local 0 3: ldc "org.apache.tomcat.util.http.ServerCookie.STRICT_NAMING"
4: invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 3
start local 3 5: ldc "org.apache.tomcat.util.http.ServerCookie.FWD_SLASH_IS_SEPARATOR"
6: invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 4
start local 4 7: goto 16
end local 4 end local 3 end local 0 8: StackMap locals:
StackMap stack:
invokedynamic run()Ljava/security/PrivilegedAction;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
()Ljava/lang/Object;
jakarta/servlet/http/Cookie.lambda$0()Ljava/lang/Boolean; (6)
()Ljava/lang/Boolean;
9: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.lang.Boolean
10: invokevirtual java.lang.Boolean.booleanValue:()Z
11: istore 0
start local 0 12: invokedynamic run()Ljava/security/PrivilegedAction;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
()Ljava/lang/Object;
jakarta/servlet/http/Cookie.lambda$1()Ljava/lang/String; (6)
()Ljava/lang/String;
13: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.lang.String
astore 3
start local 3 14: invokedynamic run()Ljava/security/PrivilegedAction;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
()Ljava/lang/Object;
jakarta/servlet/http/Cookie.lambda$2()Ljava/lang/String; (6)
()Ljava/lang/String;
15: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.lang.String
astore 4
start local 4 16: StackMap locals: int top top java.lang.String java.lang.String
StackMap stack:
aload 3
ifnonnull 19
17: iload 0
istore 1
start local 1 18: goto 20
end local 1 19: StackMap locals:
StackMap stack:
aload 3
invokestatic java.lang.Boolean.parseBoolean:(Ljava/lang/String;)Z
istore 1
start local 1 20: StackMap locals: int int top java.lang.String java.lang.String
StackMap stack:
aload 4
ifnonnull 25
21: iload 0
ifeq 22
iconst_0
goto 23
StackMap locals:
StackMap stack:
22: iconst_1
StackMap locals:
StackMap stack: int
23: istore 2
start local 2 24: goto 28
end local 2 25: StackMap locals:
StackMap stack:
aload 4
invokestatic java.lang.Boolean.parseBoolean:(Ljava/lang/String;)Z
ifeq 26
iconst_0
goto 27
StackMap locals:
StackMap stack:
26: iconst_1
StackMap locals:
StackMap stack: int
27: istore 2
start local 2 28: StackMap locals: int int int java.lang.String java.lang.String
StackMap stack:
iload 1
ifeq 31
29: new jakarta.servlet.http.RFC2109Validator
dup
iload 2
invokespecial jakarta.servlet.http.RFC2109Validator.<init>:(Z)V
putstatic jakarta.servlet.http.Cookie.validation:Ljakarta/servlet/http/CookieNameValidator;
30: goto 32
31: StackMap locals:
StackMap stack:
new jakarta.servlet.http.RFC6265Validator
dup
invokespecial jakarta.servlet.http.RFC6265Validator.<init>:()V
putstatic jakarta.servlet.http.Cookie.validation:Ljakarta/servlet/http/CookieNameValidator;
end local 4 end local 3 end local 2 end local 1 end local 0 32: StackMap locals:
StackMap stack:
return
LocalVariableTable:
Start End Slot Name Signature
3 8 0 strictServletCompliance Z
12 32 0 strictServletCompliance Z
18 19 1 strictNaming Z
20 32 1 strictNaming Z
24 25 2 allowSlash Z
28 32 2 allowSlash Z
5 8 3 propStrictNaming Ljava/lang/String;
14 32 3 propStrictNaming Ljava/lang/String;
7 8 4 propFwdSlashIsSeparator Ljava/lang/String;
16 32 4 propFwdSlashIsSeparator Ljava/lang/String;
public void <init>(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iconst_0
putfield jakarta.servlet.http.Cookie.version:I
2: aload 0
iconst_m1
putfield jakarta.servlet.http.Cookie.maxAge:I
3: getstatic jakarta.servlet.http.Cookie.validation:Ljakarta/servlet/http/CookieNameValidator;
aload 1
invokevirtual jakarta.servlet.http.CookieNameValidator.validate:(Ljava/lang/String;)V
4: aload 0
aload 1
putfield jakarta.servlet.http.Cookie.name:Ljava/lang/String;
5: aload 0
aload 2
putfield jakarta.servlet.http.Cookie.value:Ljava/lang/String;
6: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljakarta/servlet/http/Cookie;
0 7 1 name Ljava/lang/String;
0 7 2 value Ljava/lang/String;
MethodParameters:
Name Flags
name
value
public void (java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield jakarta.servlet.http.Cookie.comment:Ljava/lang/String;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljakarta/servlet/http/Cookie;
0 2 1 purpose Ljava/lang/String;
MethodParameters:
Name Flags
purpose
public java.lang.String ();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jakarta.servlet.http.Cookie.comment:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljakarta/servlet/http/Cookie;
public void setDomain(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
getstatic java.util.Locale.ENGLISH:Ljava/util/Locale;
invokevirtual java.lang.String.toLowerCase:(Ljava/util/Locale;)Ljava/lang/String;
putfield jakarta.servlet.http.Cookie.domain:Ljava/lang/String;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljakarta/servlet/http/Cookie;
0 2 1 pattern Ljava/lang/String;
MethodParameters:
Name Flags
pattern
public java.lang.String getDomain();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jakarta.servlet.http.Cookie.domain:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljakarta/servlet/http/Cookie;
public void setMaxAge(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
putfield jakarta.servlet.http.Cookie.maxAge:I
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljakarta/servlet/http/Cookie;
0 2 1 expiry I
MethodParameters:
Name Flags
expiry
public int getMaxAge();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jakarta.servlet.http.Cookie.maxAge:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljakarta/servlet/http/Cookie;
public void setPath(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield jakarta.servlet.http.Cookie.path:Ljava/lang/String;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljakarta/servlet/http/Cookie;
0 2 1 uri Ljava/lang/String;
MethodParameters:
Name Flags
uri
public java.lang.String getPath();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jakarta.servlet.http.Cookie.path:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljakarta/servlet/http/Cookie;
public void setSecure(boolean);
descriptor: (Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
putfield jakarta.servlet.http.Cookie.secure:Z
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljakarta/servlet/http/Cookie;
0 2 1 flag Z
MethodParameters:
Name Flags
flag
public boolean getSecure();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jakarta.servlet.http.Cookie.secure:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljakarta/servlet/http/Cookie;
public java.lang.String getName();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jakarta.servlet.http.Cookie.name:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljakarta/servlet/http/Cookie;
public void setValue(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield jakarta.servlet.http.Cookie.value:Ljava/lang/String;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljakarta/servlet/http/Cookie;
0 2 1 newValue Ljava/lang/String;
MethodParameters:
Name Flags
newValue
public java.lang.String getValue();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jakarta.servlet.http.Cookie.value:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljakarta/servlet/http/Cookie;
public int getVersion();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jakarta.servlet.http.Cookie.version:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljakarta/servlet/http/Cookie;
public void setVersion(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
putfield jakarta.servlet.http.Cookie.version:I
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljakarta/servlet/http/Cookie;
0 2 1 v I
MethodParameters:
Name Flags
v
public java.lang.Object clone();
descriptor: ()Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.clone:()Ljava/lang/Object;
1: areturn
2: StackMap locals:
StackMap stack: java.lang.CloneNotSupportedException
astore 1
start local 1 3: new java.lang.RuntimeException
dup
aload 1
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljakarta/servlet/http/Cookie;
3 4 1 e Ljava/lang/CloneNotSupportedException;
Exception table:
from to target type
0 1 2 Class java.lang.CloneNotSupportedException
public void setHttpOnly(boolean);
descriptor: (Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
putfield jakarta.servlet.http.Cookie.httpOnly:Z
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljakarta/servlet/http/Cookie;
0 2 1 httpOnly Z
MethodParameters:
Name Flags
httpOnly
public boolean isHttpOnly();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jakarta.servlet.http.Cookie.httpOnly:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljakarta/servlet/http/Cookie;
private static java.lang.Boolean lambda$0();
descriptor: ()Ljava/lang/Boolean;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=0, args_size=0
0: ldc "org.apache.catalina.STRICT_SERVLET_COMPLIANCE"
1: invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
invokestatic java.lang.Boolean.valueOf:(Ljava/lang/String;)Ljava/lang/Boolean;
2: areturn
LocalVariableTable:
Start End Slot Name Signature
private static java.lang.String lambda$1();
descriptor: ()Ljava/lang/String;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=0, args_size=0
0: ldc "org.apache.tomcat.util.http.ServerCookie.STRICT_NAMING"
1: invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
2: areturn
LocalVariableTable:
Start End Slot Name Signature
private static java.lang.String lambda$2();
descriptor: ()Ljava/lang/String;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=0, args_size=0
0: ldc "org.apache.tomcat.util.http.ServerCookie.FWD_SLASH_IS_SEPARATOR"
1: invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
2: areturn
LocalVariableTable:
Start End Slot Name Signature
}
SourceFile: "Cookie.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles