public final class org.apache.catalina.session.FileStore extends org.apache.catalina.session.StoreBase
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: org.apache.catalina.session.FileStore
super_class: org.apache.catalina.session.StoreBase
{
private static final org.apache.juli.logging.Log log;
descriptor: Lorg/apache/juli/logging/Log;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
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 static final java.lang.String FILE_EXT;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: ".session"
private java.lang.String directory;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private java.io.File directoryFile;
descriptor: Ljava/io/File;
flags: (0x0002) ACC_PRIVATE
private static final java.lang.String storeName;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "fileStore"
private static final java.lang.String threadName;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "FileStore"
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lorg/apache/catalina/session/FileStore;
invokestatic org.apache.juli.logging.LogFactory.getLog:(Ljava/lang/Class;)Lorg/apache/juli/logging/Log;
putstatic org.apache.catalina.session.FileStore.log:Lorg/apache/juli/logging/Log;
1: ldc Lorg/apache/catalina/session/FileStore;
invokestatic org.apache.tomcat.util.res.StringManager.getManager:(Ljava/lang/Class;)Lorg/apache/tomcat/util/res/StringManager;
putstatic org.apache.catalina.session.FileStore.sm:Lorg/apache/tomcat/util/res/StringManager;
2: return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokespecial org.apache.catalina.session.StoreBase.<init>:()V
1: aload 0
ldc "."
putfield org.apache.catalina.session.FileStore.directory:Ljava/lang/String;
2: aload 0
aconst_null
putfield org.apache.catalina.session.FileStore.directoryFile:Ljava/io/File;
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/catalina/session/FileStore;
public java.lang.String getDirectory();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.catalina.session.FileStore.directory:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/catalina/session/FileStore;
public void setDirectory(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.catalina.session.FileStore.directory:Ljava/lang/String;
astore 2
start local 2 1: aload 0
aload 1
putfield org.apache.catalina.session.FileStore.directory:Ljava/lang/String;
2: aload 0
aconst_null
putfield org.apache.catalina.session.FileStore.directoryFile:Ljava/io/File;
3: aload 0
getfield org.apache.catalina.session.FileStore.support:Ljava/beans/PropertyChangeSupport;
ldc "directory"
aload 2
aload 0
getfield org.apache.catalina.session.FileStore.directory:Ljava/lang/String;
invokevirtual java.beans.PropertyChangeSupport.firePropertyChange:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/catalina/session/FileStore;
0 5 1 path Ljava/lang/String;
1 5 2 oldDirectory Ljava/lang/String;
MethodParameters:
Name Flags
path
public java.lang.String getThreadName();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: ldc "FileStore"
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/catalina/session/FileStore;
public java.lang.String getStoreName();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: ldc "fileStore"
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/catalina/session/FileStore;
public int getSize();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=8, args_size=1
start local 0 0: aload 0
invokevirtual org.apache.catalina.session.FileStore.directory:()Ljava/io/File;
astore 1
start local 1 1: aload 1
ifnonnull 3
2: iconst_0
ireturn
3: StackMap locals: java.io.File
StackMap stack:
aload 1
invokevirtual java.io.File.list:()[Ljava/lang/String;
astore 2
start local 2 4: iconst_0
istore 3
start local 3 5: aload 2
ifnull 12
6: aload 2
dup
astore 7
arraylength
istore 6
iconst_0
istore 5
goto 11
StackMap locals: org.apache.catalina.session.FileStore java.io.File java.lang.String[] int top int int java.lang.String[]
StackMap stack:
7: aload 7
iload 5
aaload
astore 4
start local 4 8: aload 4
ldc ".session"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 10
9: iinc 3 1
end local 4 10: StackMap locals:
StackMap stack:
iinc 5 1
StackMap locals:
StackMap stack:
11: iload 5
iload 6
if_icmplt 7
12: StackMap locals: org.apache.catalina.session.FileStore java.io.File java.lang.String[] int
StackMap stack:
iload 3
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lorg/apache/catalina/session/FileStore;
1 13 1 dir Ljava/io/File;
4 13 2 files [Ljava/lang/String;
5 13 3 keycount I
8 10 4 file Ljava/lang/String;
Exceptions:
throws java.io.IOException
public void clear();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=6, args_size=1
start local 0 0: aload 0
invokevirtual org.apache.catalina.session.FileStore.keys:()[Ljava/lang/String;
astore 1
start local 1 1: aload 1
dup
astore 5
arraylength
istore 4
iconst_0
istore 3
goto 5
StackMap locals: org.apache.catalina.session.FileStore java.lang.String[] top int int java.lang.String[]
StackMap stack:
2: aload 5
iload 3
aaload
astore 2
start local 2 3: aload 0
aload 2
invokevirtual org.apache.catalina.session.FileStore.remove:(Ljava/lang/String;)V
end local 2 4: iinc 3 1
StackMap locals:
StackMap stack:
5: iload 3
iload 4
if_icmplt 2
6: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/catalina/session/FileStore;
1 7 1 keys [Ljava/lang/String;
3 4 2 key Ljava/lang/String;
Exceptions:
throws java.io.IOException
public java.lang.String[] keys();
descriptor: ()[Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=9, args_size=1
start local 0 0: aload 0
invokevirtual org.apache.catalina.session.FileStore.directory:()Ljava/io/File;
astore 1
start local 1 1: aload 1
ifnonnull 3
2: iconst_0
anewarray java.lang.String
areturn
3: StackMap locals: java.io.File
StackMap stack:
aload 1
invokevirtual java.io.File.list:()[Ljava/lang/String;
astore 2
start local 2 4: aload 2
ifnull 5
aload 2
arraylength
iconst_1
if_icmpge 6
5: StackMap locals: java.lang.String[]
StackMap stack:
iconst_0
anewarray java.lang.String
areturn
6: StackMap locals:
StackMap stack:
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 3
start local 3 7: ldc ".session"
invokevirtual java.lang.String.length:()I
istore 4
start local 4 8: aload 2
dup
astore 8
arraylength
istore 7
iconst_0
istore 6
goto 13
StackMap locals: org.apache.catalina.session.FileStore java.io.File java.lang.String[] java.util.List int top int int java.lang.String[]
StackMap stack:
9: aload 8
iload 6
aaload
astore 5
start local 5 10: aload 5
ldc ".session"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 12
11: aload 3
aload 5
iconst_0
aload 5
invokevirtual java.lang.String.length:()I
iload 4
isub
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 5 12: StackMap locals:
StackMap stack:
iinc 6 1
StackMap locals:
StackMap stack:
13: iload 6
iload 7
if_icmplt 9
14: aload 3
iconst_0
anewarray java.lang.String
invokeinterface java.util.List.toArray:([Ljava/lang/Object;)[Ljava/lang/Object;
checkcast java.lang.String[]
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lorg/apache/catalina/session/FileStore;
1 15 1 dir Ljava/io/File;
4 15 2 files [Ljava/lang/String;
7 15 3 list Ljava/util/List<Ljava/lang/String;>;
8 15 4 n I
10 12 5 file Ljava/lang/String;
Exceptions:
throws java.io.IOException
public org.apache.catalina.Session load(java.lang.String);
descriptor: (Ljava/lang/String;)Lorg/apache/catalina/Session;
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=13, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual org.apache.catalina.session.FileStore.file:(Ljava/lang/String;)Ljava/io/File;
astore 2
start local 2 1: aload 2
ifnull 2
aload 2
invokevirtual java.io.File.exists:()Z
ifne 3
2: StackMap locals: java.io.File
StackMap stack:
aconst_null
areturn
3: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.apache.catalina.session.FileStore.getManager:()Lorg/apache/catalina/Manager;
invokeinterface org.apache.catalina.Manager.getContext:()Lorg/apache/catalina/Context;
astore 3
start local 3 4: aload 3
invokeinterface org.apache.catalina.Context.getLogger:()Lorg/apache/juli/logging/Log;
astore 4
start local 4 5: aload 4
invokeinterface org.apache.juli.logging.Log.isDebugEnabled:()Z
ifeq 7
6: aload 4
getstatic org.apache.catalina.session.FileStore.sm:Lorg/apache/tomcat/util/res/StringManager;
new java.lang.StringBuilder
dup
aload 0
invokevirtual org.apache.catalina.session.FileStore.getStoreName:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ".loading"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 1
aastore
dup
iconst_1
aload 2
invokevirtual java.io.File.getAbsolutePath:()Ljava/lang/String;
aastore
invokevirtual org.apache.tomcat.util.res.StringManager.getString:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokeinterface org.apache.juli.logging.Log.debug:(Ljava/lang/Object;)V
7: StackMap locals: org.apache.catalina.Context org.apache.juli.logging.Log
StackMap stack:
aload 3
getstatic org.apache.catalina.Globals.IS_SECURITY_ENABLED:Z
aconst_null
invokeinterface org.apache.catalina.Context.bind:(ZLjava/lang/ClassLoader;)Ljava/lang/ClassLoader;
astore 5
start local 5 8: aconst_null
astore 6
aconst_null
astore 7
9: new java.io.FileInputStream
dup
aload 2
invokevirtual java.io.File.getAbsolutePath:()Ljava/lang/String;
invokespecial java.io.FileInputStream.<init>:(Ljava/lang/String;)V
astore 8
start local 8 10: aload 0
aload 8
invokevirtual org.apache.catalina.session.FileStore.getObjectInputStream:(Ljava/io/InputStream;)Ljava/io/ObjectInputStream;
astore 9
start local 9 11: aload 0
getfield org.apache.catalina.session.FileStore.manager:Lorg/apache/catalina/Manager;
invokeinterface org.apache.catalina.Manager.createEmptySession:()Lorg/apache/catalina/Session;
checkcast org.apache.catalina.session.StandardSession
astore 10
start local 10 12: aload 10
aload 9
invokevirtual org.apache.catalina.session.StandardSession.readObjectData:(Ljava/io/ObjectInputStream;)V
13: aload 10
aload 0
getfield org.apache.catalina.session.FileStore.manager:Lorg/apache/catalina/Manager;
invokevirtual org.apache.catalina.session.StandardSession.setManager:(Lorg/apache/catalina/Manager;)V
14: aload 10
astore 12
15: aload 9
ifnull 16
aload 9
invokevirtual java.io.ObjectInputStream.close:()V
StackMap locals: org.apache.catalina.session.FileStore java.lang.String java.io.File org.apache.catalina.Context org.apache.juli.logging.Log java.lang.ClassLoader java.lang.Throwable java.lang.Throwable java.io.FileInputStream java.io.ObjectInputStream org.apache.catalina.session.StandardSession top org.apache.catalina.Session
StackMap stack:
16: aload 8
ifnull 17
aload 8
invokevirtual java.io.FileInputStream.close:()V
17: StackMap locals:
StackMap stack:
aload 3
getstatic org.apache.catalina.Globals.IS_SECURITY_ENABLED:Z
aload 5
invokeinterface org.apache.catalina.Context.unbind:(ZLjava/lang/ClassLoader;)V
18: aload 12
areturn
end local 10 StackMap locals: org.apache.catalina.session.FileStore java.lang.String java.io.File org.apache.catalina.Context org.apache.juli.logging.Log java.lang.ClassLoader java.lang.Throwable java.lang.Throwable java.io.FileInputStream java.io.ObjectInputStream
StackMap stack: java.lang.Throwable
19: astore 6
20: aload 9
ifnull 21
aload 9
invokevirtual java.io.ObjectInputStream.close:()V
end local 9 StackMap locals:
StackMap stack:
21: aload 6
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
22: astore 7
aload 6
ifnonnull 23
aload 7
astore 6
goto 24
StackMap locals:
StackMap stack:
23: aload 6
aload 7
if_acmpeq 24
aload 6
aload 7
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
24: aload 8
ifnull 25
aload 8
invokevirtual java.io.FileInputStream.close:()V
end local 8 StackMap locals:
StackMap stack:
25: aload 6
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
26: astore 7
aload 6
ifnonnull 27
aload 7
astore 6
goto 28
StackMap locals:
StackMap stack:
27: aload 6
aload 7
if_acmpeq 28
aload 6
aload 7
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
28: aload 6
athrow
StackMap locals: org.apache.catalina.session.FileStore java.lang.String java.io.File org.apache.catalina.Context org.apache.juli.logging.Log java.lang.ClassLoader
StackMap stack: java.io.FileNotFoundException
29: pop
30: aload 4
invokeinterface org.apache.juli.logging.Log.isDebugEnabled:()Z
ifeq 32
31: aload 4
ldc "No persisted data file found"
invokeinterface org.apache.juli.logging.Log.debug:(Ljava/lang/Object;)V
32: StackMap locals:
StackMap stack:
aload 3
getstatic org.apache.catalina.Globals.IS_SECURITY_ENABLED:Z
aload 5
invokeinterface org.apache.catalina.Context.unbind:(ZLjava/lang/ClassLoader;)V
33: aconst_null
areturn
34: StackMap locals:
StackMap stack: java.lang.Throwable
astore 11
35: aload 3
getstatic org.apache.catalina.Globals.IS_SECURITY_ENABLED:Z
aload 5
invokeinterface org.apache.catalina.Context.unbind:(ZLjava/lang/ClassLoader;)V
36: aload 11
athrow
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 37 0 this Lorg/apache/catalina/session/FileStore;
0 37 1 id Ljava/lang/String;
1 37 2 file Ljava/io/File;
4 37 3 context Lorg/apache/catalina/Context;
5 37 4 contextLog Lorg/apache/juli/logging/Log;
8 37 5 oldThreadContextCL Ljava/lang/ClassLoader;
10 25 8 fis Ljava/io/FileInputStream;
11 21 9 ois Ljava/io/ObjectInputStream;
12 19 10 session Lorg/apache/catalina/session/StandardSession;
Exception table:
from to target type
11 15 19 any
10 16 22 any
19 22 22 any
9 17 26 any
19 26 26 any
8 17 29 Class java.io.FileNotFoundException
19 29 29 Class java.io.FileNotFoundException
8 17 34 any
19 32 34 any
Exceptions:
throws java.lang.ClassNotFoundException, java.io.IOException
MethodParameters:
Name Flags
id
public void remove(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=8, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual org.apache.catalina.session.FileStore.file:(Ljava/lang/String;)Ljava/io/File;
astore 2
start local 2 1: aload 2
ifnonnull 3
2: return
3: StackMap locals: java.io.File
StackMap stack:
aload 0
getfield org.apache.catalina.session.FileStore.manager:Lorg/apache/catalina/Manager;
invokeinterface org.apache.catalina.Manager.getContext:()Lorg/apache/catalina/Context;
invokeinterface org.apache.catalina.Context.getLogger:()Lorg/apache/juli/logging/Log;
invokeinterface org.apache.juli.logging.Log.isDebugEnabled:()Z
ifeq 7
4: aload 0
getfield org.apache.catalina.session.FileStore.manager:Lorg/apache/catalina/Manager;
invokeinterface org.apache.catalina.Manager.getContext:()Lorg/apache/catalina/Context;
invokeinterface org.apache.catalina.Context.getLogger:()Lorg/apache/juli/logging/Log;
getstatic org.apache.catalina.session.FileStore.sm:Lorg/apache/tomcat/util/res/StringManager;
new java.lang.StringBuilder
dup
aload 0
invokevirtual org.apache.catalina.session.FileStore.getStoreName:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ".removing"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
iconst_2
anewarray java.lang.Object
dup
iconst_0
5: aload 1
aastore
dup
iconst_1
aload 2
invokevirtual java.io.File.getAbsolutePath:()Ljava/lang/String;
aastore
6: invokevirtual org.apache.tomcat.util.res.StringManager.getString:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokeinterface org.apache.juli.logging.Log.debug:(Ljava/lang/Object;)V
7: StackMap locals:
StackMap stack:
aload 2
invokevirtual java.io.File.exists:()Z
ifeq 9
aload 2
invokevirtual java.io.File.delete:()Z
ifne 9
8: new java.io.IOException
dup
getstatic org.apache.catalina.session.FileStore.sm:Lorg/apache/tomcat/util/res/StringManager;
ldc "fileStore.deleteSessionFailed"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 2
aastore
invokevirtual org.apache.tomcat.util.res.StringManager.getString:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
9: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/apache/catalina/session/FileStore;
0 10 1 id Ljava/lang/String;
1 10 2 file Ljava/io/File;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
id
public void save(org.apache.catalina.Session);
descriptor: (Lorg/apache/catalina/Session;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=7, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokeinterface org.apache.catalina.Session.getIdInternal:()Ljava/lang/String;
invokevirtual org.apache.catalina.session.FileStore.file:(Ljava/lang/String;)Ljava/io/File;
astore 2
start local 2 1: aload 2
ifnonnull 3
2: return
3: StackMap locals: java.io.File
StackMap stack:
aload 0
getfield org.apache.catalina.session.FileStore.manager:Lorg/apache/catalina/Manager;
invokeinterface org.apache.catalina.Manager.getContext:()Lorg/apache/catalina/Context;
invokeinterface org.apache.catalina.Context.getLogger:()Lorg/apache/juli/logging/Log;
invokeinterface org.apache.juli.logging.Log.isDebugEnabled:()Z
ifeq 7
4: aload 0
getfield org.apache.catalina.session.FileStore.manager:Lorg/apache/catalina/Manager;
invokeinterface org.apache.catalina.Manager.getContext:()Lorg/apache/catalina/Context;
invokeinterface org.apache.catalina.Context.getLogger:()Lorg/apache/juli/logging/Log;
getstatic org.apache.catalina.session.FileStore.sm:Lorg/apache/tomcat/util/res/StringManager;
new java.lang.StringBuilder
dup
aload 0
invokevirtual org.apache.catalina.session.FileStore.getStoreName:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ".saving"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
iconst_2
anewarray java.lang.Object
dup
iconst_0
5: aload 1
invokeinterface org.apache.catalina.Session.getIdInternal:()Ljava/lang/String;
aastore
dup
iconst_1
aload 2
invokevirtual java.io.File.getAbsolutePath:()Ljava/lang/String;
aastore
6: invokevirtual org.apache.tomcat.util.res.StringManager.getString:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokeinterface org.apache.juli.logging.Log.debug:(Ljava/lang/Object;)V
7: StackMap locals:
StackMap stack:
aconst_null
astore 3
aconst_null
astore 4
8: new java.io.FileOutputStream
dup
aload 2
invokevirtual java.io.File.getAbsolutePath:()Ljava/lang/String;
invokespecial java.io.FileOutputStream.<init>:(Ljava/lang/String;)V
astore 5
start local 5 9: new java.io.ObjectOutputStream
dup
new java.io.BufferedOutputStream
dup
aload 5
invokespecial java.io.BufferedOutputStream.<init>:(Ljava/io/OutputStream;)V
invokespecial java.io.ObjectOutputStream.<init>:(Ljava/io/OutputStream;)V
astore 6
start local 6 10: aload 1
checkcast org.apache.catalina.session.StandardSession
aload 6
invokevirtual org.apache.catalina.session.StandardSession.writeObjectData:(Ljava/io/ObjectOutputStream;)V
11: aload 6
ifnull 14
aload 6
invokevirtual java.io.ObjectOutputStream.close:()V
goto 14
StackMap locals: org.apache.catalina.session.FileStore org.apache.catalina.Session java.io.File java.lang.Throwable java.lang.Throwable java.io.FileOutputStream java.io.ObjectOutputStream
StackMap stack: java.lang.Throwable
12: astore 3
aload 6
ifnull 13
aload 6
invokevirtual java.io.ObjectOutputStream.close:()V
end local 6 StackMap locals:
StackMap stack:
13: aload 3
athrow
StackMap locals:
StackMap stack:
14: aload 5
ifnull 22
aload 5
invokevirtual java.io.FileOutputStream.close:()V
goto 22
StackMap locals:
StackMap stack: java.lang.Throwable
15: astore 4
aload 3
ifnonnull 16
aload 4
astore 3
goto 17
StackMap locals:
StackMap stack:
16: aload 3
aload 4
if_acmpeq 17
aload 3
aload 4
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
17: aload 5
ifnull 18
aload 5
invokevirtual java.io.FileOutputStream.close:()V
end local 5 StackMap locals:
StackMap stack:
18: aload 3
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
19: astore 4
aload 3
ifnonnull 20
aload 4
astore 3
goto 21
StackMap locals:
StackMap stack:
20: aload 3
aload 4
if_acmpeq 21
aload 3
aload 4
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
21: aload 3
athrow
22: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 23 0 this Lorg/apache/catalina/session/FileStore;
0 23 1 session Lorg/apache/catalina/Session;
1 23 2 file Ljava/io/File;
9 18 5 fos Ljava/io/FileOutputStream;
10 13 6 oos Ljava/io/ObjectOutputStream;
Exception table:
from to target type
10 11 12 any
9 14 15 any
8 19 19 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
session
private java.io.File directory();
descriptor: ()Ljava/io/File;
flags: (0x0002) ACC_PRIVATE
Code:
stack=8, locals=5, args_size=1
start local 0 0: aload 0
getfield org.apache.catalina.session.FileStore.directory:Ljava/lang/String;
ifnonnull 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.catalina.session.FileStore.directoryFile:Ljava/io/File;
ifnull 4
3: aload 0
getfield org.apache.catalina.session.FileStore.directoryFile:Ljava/io/File;
areturn
4: StackMap locals:
StackMap stack:
new java.io.File
dup
aload 0
getfield org.apache.catalina.session.FileStore.directory:Ljava/lang/String;
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
astore 1
start local 1 5: aload 1
invokevirtual java.io.File.isAbsolute:()Z
ifne 10
6: aload 0
getfield org.apache.catalina.session.FileStore.manager:Lorg/apache/catalina/Manager;
invokeinterface org.apache.catalina.Manager.getContext:()Lorg/apache/catalina/Context;
astore 2
start local 2 7: aload 2
invokeinterface org.apache.catalina.Context.getServletContext:()Ljakarta/servlet/ServletContext;
astore 3
start local 3 8: aload 3
ldc "jakarta.servlet.context.tempdir"
invokeinterface jakarta.servlet.ServletContext.getAttribute:(Ljava/lang/String;)Ljava/lang/Object;
checkcast java.io.File
astore 4
start local 4 9: new java.io.File
dup
aload 4
aload 0
getfield org.apache.catalina.session.FileStore.directory:Ljava/lang/String;
invokespecial java.io.File.<init>:(Ljava/io/File;Ljava/lang/String;)V
astore 1
end local 4 end local 3 end local 2 10: StackMap locals: java.io.File
StackMap stack:
aload 1
invokevirtual java.io.File.exists:()Z
ifeq 11
aload 1
invokevirtual java.io.File.isDirectory:()Z
ifne 15
11: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.io.File.delete:()Z
ifne 13
aload 1
invokevirtual java.io.File.exists:()Z
ifeq 13
12: new java.io.IOException
dup
getstatic org.apache.catalina.session.FileStore.sm:Lorg/apache/tomcat/util/res/StringManager;
ldc "fileStore.deleteFailed"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 1
aastore
invokevirtual org.apache.tomcat.util.res.StringManager.getString:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
13: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.io.File.mkdirs:()Z
ifne 15
aload 1
invokevirtual java.io.File.isDirectory:()Z
ifne 15
14: new java.io.IOException
dup
getstatic org.apache.catalina.session.FileStore.sm:Lorg/apache/tomcat/util/res/StringManager;
ldc "fileStore.createFailed"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 1
aastore
invokevirtual org.apache.tomcat.util.res.StringManager.getString:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
15: StackMap locals:
StackMap stack:
aload 0
aload 1
putfield org.apache.catalina.session.FileStore.directoryFile:Ljava/io/File;
16: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lorg/apache/catalina/session/FileStore;
5 17 1 file Ljava/io/File;
7 10 2 context Lorg/apache/catalina/Context;
8 10 3 servletContext Ljakarta/servlet/ServletContext;
9 10 4 work Ljava/io/File;
Exceptions:
throws java.io.IOException
private java.io.File file(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/io/File;
flags: (0x0002) ACC_PRIVATE
Code:
stack=7, locals=5, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.apache.catalina.session.FileStore.directory:()Ljava/io/File;
astore 2
start local 2 1: aload 2
ifnonnull 3
2: aconst_null
areturn
3: StackMap locals: java.io.File
StackMap stack:
new java.lang.StringBuilder
dup
aload 1
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ".session"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 3
start local 3 4: new java.io.File
dup
aload 2
aload 3
invokespecial java.io.File.<init>:(Ljava/io/File;Ljava/lang/String;)V
astore 4
start local 4 5: aload 4
invokevirtual java.io.File.getCanonicalPath:()Ljava/lang/String;
aload 2
invokevirtual java.io.File.getCanonicalPath:()Ljava/lang/String;
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifne 8
6: getstatic org.apache.catalina.session.FileStore.log:Lorg/apache/juli/logging/Log;
getstatic org.apache.catalina.session.FileStore.sm:Lorg/apache/tomcat/util/res/StringManager;
ldc "fileStore.invalid"
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 4
invokevirtual java.io.File.getPath:()Ljava/lang/String;
aastore
dup
iconst_1
aload 1
aastore
invokevirtual org.apache.tomcat.util.res.StringManager.getString:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokeinterface org.apache.juli.logging.Log.warn:(Ljava/lang/Object;)V
7: aconst_null
areturn
8: StackMap locals: java.lang.String java.io.File
StackMap stack:
aload 4
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/apache/catalina/session/FileStore;
0 9 1 id Ljava/lang/String;
1 9 2 storageDir Ljava/io/File;
4 9 3 filename Ljava/lang/String;
5 9 4 file Ljava/io/File;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
id
}
SourceFile: "FileStore.java"