public class javax.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: javax.servlet.http.Cookie
super_class: java.lang.Object
{
private static final javax.servlet.http.CookieNameValidator validation;
descriptor: Ljavax/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:
new javax.servlet.http.Cookie$1
dup
invokespecial javax.servlet.http.Cookie$1.<init>:()V
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: new javax.servlet.http.Cookie$2
dup
invokespecial javax.servlet.http.Cookie$2.<init>:()V
13: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.lang.String
astore 3
start local 3 14: new javax.servlet.http.Cookie$3
dup
invokespecial javax.servlet.http.Cookie$3.<init>:()V
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 javax.servlet.http.RFC2109Validator
dup
iload 2
invokespecial javax.servlet.http.RFC2109Validator.<init>:(Z)V
putstatic javax.servlet.http.Cookie.validation:Ljavax/servlet/http/CookieNameValidator;
30: goto 32
31: StackMap locals:
StackMap stack:
new javax.servlet.http.RFC6265Validator
dup
invokespecial javax.servlet.http.RFC6265Validator.<init>:()V
putstatic javax.servlet.http.Cookie.validation:Ljavax/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 javax.servlet.http.Cookie.version:I
2: aload 0
iconst_m1
putfield javax.servlet.http.Cookie.maxAge:I
3: getstatic javax.servlet.http.Cookie.validation:Ljavax/servlet/http/CookieNameValidator;
aload 1
invokevirtual javax.servlet.http.CookieNameValidator.validate:(Ljava/lang/String;)V
4: aload 0
aload 1
putfield javax.servlet.http.Cookie.name:Ljava/lang/String;
5: aload 0
aload 2
putfield javax.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 Ljavax/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 javax.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 Ljavax/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 javax.servlet.http.Cookie.comment:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/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 javax.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 Ljavax/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 javax.servlet.http.Cookie.domain:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/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 javax.servlet.http.Cookie.maxAge:I
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljavax/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 javax.servlet.http.Cookie.maxAge:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/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 javax.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 Ljavax/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 javax.servlet.http.Cookie.path:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/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 javax.servlet.http.Cookie.secure:Z
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljavax/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 javax.servlet.http.Cookie.secure:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/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 javax.servlet.http.Cookie.name:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/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 javax.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 Ljavax/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 javax.servlet.http.Cookie.value:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/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 javax.servlet.http.Cookie.version:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/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 javax.servlet.http.Cookie.version:I
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljavax/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 Ljavax/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 javax.servlet.http.Cookie.httpOnly:Z
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljavax/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 javax.servlet.http.Cookie.httpOnly:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/servlet/http/Cookie;
}
SourceFile: "Cookie.java"
NestMembers:
javax.servlet.http.Cookie$1 javax.servlet.http.Cookie$2 javax.servlet.http.Cookie$3
InnerClasses:
javax.servlet.http.Cookie$1
javax.servlet.http.Cookie$2
javax.servlet.http.Cookie$3