public class org.apache.tomcat.util.http.ServerCookies
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.tomcat.util.http.ServerCookies
super_class: java.lang.Object
{
private static final org.apache.tomcat.util.res.StringManager sm;
descriptor: Lorg/apache/tomcat/util/res/StringManager;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private org.apache.tomcat.util.http.ServerCookie[] serverCookies;
descriptor: [Lorg/apache/tomcat/util/http/ServerCookie;
flags: (0x0002) ACC_PRIVATE
private int cookieCount;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int limit;
descriptor: I
flags: (0x0002) ACC_PRIVATE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lorg/apache/tomcat/util/http/ServerCookies;
invokestatic org.apache.tomcat.util.res.StringManager.getManager:(Ljava/lang/Class;)Lorg/apache/tomcat/util/res/StringManager;
putstatic org.apache.tomcat.util.http.ServerCookies.sm:Lorg/apache/tomcat/util/res/StringManager;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(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
invokespecial java.lang.Object.<init>:()V
1: aload 0
iconst_0
putfield org.apache.tomcat.util.http.ServerCookies.cookieCount:I
2: aload 0
sipush 200
putfield org.apache.tomcat.util.http.ServerCookies.limit:I
3: aload 0
iload 1
anewarray org.apache.tomcat.util.http.ServerCookie
putfield org.apache.tomcat.util.http.ServerCookies.serverCookies:[Lorg/apache/tomcat/util/http/ServerCookie;
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/tomcat/util/http/ServerCookies;
0 5 1 initialSize I
MethodParameters:
Name Flags
initialSize
public org.apache.tomcat.util.http.ServerCookie addCookie();
descriptor: ()Lorg/apache/tomcat/util/http/ServerCookie;
flags: (0x0001) ACC_PUBLIC
Code:
stack=8, locals=3, args_size=1
start local 0 0: aload 0
getfield org.apache.tomcat.util.http.ServerCookies.limit:I
iconst_m1
if_icmple 4
aload 0
getfield org.apache.tomcat.util.http.ServerCookies.cookieCount:I
aload 0
getfield org.apache.tomcat.util.http.ServerCookies.limit:I
if_icmplt 4
1: new java.lang.IllegalArgumentException
dup
2: getstatic org.apache.tomcat.util.http.ServerCookies.sm:Lorg/apache/tomcat/util/res/StringManager;
ldc "cookies.maxCountFail"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 0
getfield org.apache.tomcat.util.http.ServerCookies.limit:I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
invokevirtual org.apache.tomcat.util.res.StringManager.getString:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
3: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.tomcat.util.http.ServerCookies.cookieCount:I
aload 0
getfield org.apache.tomcat.util.http.ServerCookies.serverCookies:[Lorg/apache/tomcat/util/http/ServerCookie;
arraylength
if_icmplt 11
5: aload 0
getfield org.apache.tomcat.util.http.ServerCookies.limit:I
iconst_m1
if_icmple 6
iconst_2
aload 0
getfield org.apache.tomcat.util.http.ServerCookies.cookieCount:I
imul
aload 0
getfield org.apache.tomcat.util.http.ServerCookies.limit:I
invokestatic java.lang.Math.min:(II)I
goto 7
StackMap locals:
StackMap stack:
6: iconst_2
aload 0
getfield org.apache.tomcat.util.http.ServerCookies.cookieCount:I
imul
StackMap locals:
StackMap stack: int
7: istore 1
start local 1 8: iload 1
anewarray org.apache.tomcat.util.http.ServerCookie
astore 2
start local 2 9: aload 0
getfield org.apache.tomcat.util.http.ServerCookies.serverCookies:[Lorg/apache/tomcat/util/http/ServerCookie;
iconst_0
aload 2
iconst_0
aload 0
getfield org.apache.tomcat.util.http.ServerCookies.cookieCount:I
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
10: aload 0
aload 2
putfield org.apache.tomcat.util.http.ServerCookies.serverCookies:[Lorg/apache/tomcat/util/http/ServerCookie;
end local 2 end local 1 11: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.tomcat.util.http.ServerCookies.serverCookies:[Lorg/apache/tomcat/util/http/ServerCookie;
aload 0
getfield org.apache.tomcat.util.http.ServerCookies.cookieCount:I
aaload
astore 1
start local 1 12: aload 1
ifnonnull 15
13: new org.apache.tomcat.util.http.ServerCookie
dup
invokespecial org.apache.tomcat.util.http.ServerCookie.<init>:()V
astore 1
14: aload 0
getfield org.apache.tomcat.util.http.ServerCookies.serverCookies:[Lorg/apache/tomcat/util/http/ServerCookie;
aload 0
getfield org.apache.tomcat.util.http.ServerCookies.cookieCount:I
aload 1
aastore
15: StackMap locals: org.apache.tomcat.util.http.ServerCookie
StackMap stack:
aload 0
dup
getfield org.apache.tomcat.util.http.ServerCookies.cookieCount:I
iconst_1
iadd
putfield org.apache.tomcat.util.http.ServerCookies.cookieCount:I
16: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lorg/apache/tomcat/util/http/ServerCookies;
8 11 1 newSize I
9 11 2 scookiesTmp [Lorg/apache/tomcat/util/http/ServerCookie;
12 17 1 c Lorg/apache/tomcat/util/http/ServerCookie;
public org.apache.tomcat.util.http.ServerCookie getCookie(int);
descriptor: (I)Lorg/apache/tomcat/util/http/ServerCookie;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.tomcat.util.http.ServerCookies.serverCookies:[Lorg/apache/tomcat/util/http/ServerCookie;
iload 1
aaload
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/tomcat/util/http/ServerCookies;
0 1 1 idx I
MethodParameters:
Name Flags
idx
public int getCookieCount();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.tomcat.util.http.ServerCookies.cookieCount:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/tomcat/util/http/ServerCookies;
public void setLimit(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 0
iload 1
putfield org.apache.tomcat.util.http.ServerCookies.limit:I
1: iload 1
iconst_m1
if_icmple 5
aload 0
getfield org.apache.tomcat.util.http.ServerCookies.serverCookies:[Lorg/apache/tomcat/util/http/ServerCookie;
arraylength
iload 1
if_icmple 5
aload 0
getfield org.apache.tomcat.util.http.ServerCookies.cookieCount:I
iload 1
if_icmpgt 5
2: iload 1
anewarray org.apache.tomcat.util.http.ServerCookie
astore 2
start local 2 3: aload 0
getfield org.apache.tomcat.util.http.ServerCookies.serverCookies:[Lorg/apache/tomcat/util/http/ServerCookie;
iconst_0
aload 2
iconst_0
aload 0
getfield org.apache.tomcat.util.http.ServerCookies.cookieCount:I
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
4: aload 0
aload 2
putfield org.apache.tomcat.util.http.ServerCookies.serverCookies:[Lorg/apache/tomcat/util/http/ServerCookie;
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 Lorg/apache/tomcat/util/http/ServerCookies;
0 6 1 limit I
3 5 2 scookiesTmp [Lorg/apache/tomcat/util/http/ServerCookie;
MethodParameters:
Name Flags
limit
public void recycle();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: iconst_0
istore 1
start local 1 1: goto 4
2: StackMap locals: int
StackMap stack:
aload 0
getfield org.apache.tomcat.util.http.ServerCookies.serverCookies:[Lorg/apache/tomcat/util/http/ServerCookie;
iload 1
aaload
invokevirtual org.apache.tomcat.util.http.ServerCookie.recycle:()V
3: iinc 1 1
StackMap locals:
StackMap stack:
4: iload 1
aload 0
getfield org.apache.tomcat.util.http.ServerCookies.cookieCount:I
if_icmplt 2
end local 1 5: aload 0
iconst_0
putfield org.apache.tomcat.util.http.ServerCookies.cookieCount:I
6: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/tomcat/util/http/ServerCookies;
1 5 1 i I
}
SourceFile: "ServerCookies.java"