public class org.apache.catalina.webresources.FileResourceSet extends org.apache.catalina.webresources.AbstractFileResourceSet
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.catalina.webresources.FileResourceSet
super_class: org.apache.catalina.webresources.AbstractFileResourceSet
{
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
ldc "/"
invokespecial org.apache.catalina.webresources.AbstractFileResourceSet.<init>:(Ljava/lang/String;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/catalina/webresources/FileResourceSet;
public void <init>(org.apache.catalina.WebResourceRoot, java.lang.String, java.lang.String, java.lang.String);
descriptor: (Lorg/apache/catalina/WebResourceRoot;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=6, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
aload 4
invokespecial org.apache.catalina.webresources.AbstractFileResourceSet.<init>:(Ljava/lang/String;)V
1: aload 0
aload 1
invokevirtual org.apache.catalina.webresources.FileResourceSet.setRoot:(Lorg/apache/catalina/WebResourceRoot;)V
2: aload 0
aload 2
invokevirtual org.apache.catalina.webresources.FileResourceSet.setWebAppMount:(Ljava/lang/String;)V
3: aload 0
aload 3
invokevirtual org.apache.catalina.webresources.FileResourceSet.setBase:(Ljava/lang/String;)V
4: aload 0
invokevirtual org.apache.catalina.webresources.FileResourceSet.getRoot:()Lorg/apache/catalina/WebResourceRoot;
invokeinterface org.apache.catalina.WebResourceRoot.getState:()Lorg/apache/catalina/LifecycleState;
invokevirtual org.apache.catalina.LifecycleState.isAvailable:()Z
ifeq 9
5: aload 0
invokevirtual org.apache.catalina.webresources.FileResourceSet.start:()V
6: goto 9
StackMap locals: org.apache.catalina.webresources.FileResourceSet org.apache.catalina.WebResourceRoot java.lang.String java.lang.String java.lang.String
StackMap stack: org.apache.catalina.LifecycleException
7: astore 5
start local 5 8: new java.lang.IllegalStateException
dup
aload 5
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 5 9: StackMap locals:
StackMap stack:
return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/apache/catalina/webresources/FileResourceSet;
0 10 1 root Lorg/apache/catalina/WebResourceRoot;
0 10 2 webAppMount Ljava/lang/String;
0 10 3 base Ljava/lang/String;
0 10 4 internalPath Ljava/lang/String;
8 9 5 e Lorg/apache/catalina/LifecycleException;
Exception table:
from to target type
5 6 7 Class org.apache.catalina.LifecycleException
MethodParameters:
Name Flags
root
webAppMount
base
internalPath
public org.apache.catalina.WebResource getResource(java.lang.String);
descriptor: (Ljava/lang/String;)Lorg/apache/catalina/WebResource;
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=5, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual org.apache.catalina.webresources.FileResourceSet.checkPath:(Ljava/lang/String;)V
1: aload 0
invokevirtual org.apache.catalina.webresources.FileResourceSet.getWebAppMount:()Ljava/lang/String;
astore 2
start local 2 2: aload 0
invokevirtual org.apache.catalina.webresources.FileResourceSet.getRoot:()Lorg/apache/catalina/WebResourceRoot;
astore 3
start local 3 3: aload 1
aload 2
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 8
4: aload 0
ldc ""
iconst_1
invokevirtual org.apache.catalina.webresources.FileResourceSet.file:(Ljava/lang/String;Z)Ljava/io/File;
astore 4
start local 4 5: aload 4
ifnonnull 7
6: new org.apache.catalina.webresources.EmptyResource
dup
aload 3
aload 1
invokespecial org.apache.catalina.webresources.EmptyResource.<init>:(Lorg/apache/catalina/WebResourceRoot;Ljava/lang/String;)V
areturn
7: StackMap locals: java.lang.String org.apache.catalina.WebResourceRoot java.io.File
StackMap stack:
new org.apache.catalina.webresources.FileResource
dup
aload 3
aload 1
aload 4
aload 0
invokevirtual org.apache.catalina.webresources.FileResourceSet.isReadOnly:()Z
aconst_null
invokespecial org.apache.catalina.webresources.FileResource.<init>:(Lorg/apache/catalina/WebResourceRoot;Ljava/lang/String;Ljava/io/File;ZLjava/util/jar/Manifest;)V
areturn
end local 4 8: StackMap locals:
StackMap stack:
aload 1
aload 1
invokevirtual java.lang.String.length:()I
iconst_1
isub
invokevirtual java.lang.String.charAt:(I)C
bipush 47
if_icmpeq 10
9: 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
bipush 47
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 1
10: StackMap locals:
StackMap stack:
aload 2
aload 1
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 15
11: aload 1
iconst_0
aload 1
invokevirtual java.lang.String.length:()I
iconst_1
isub
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 4
start local 4 12: aload 4
aload 4
bipush 47
invokevirtual java.lang.String.lastIndexOf:(I)I
iconst_1
iadd
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 4
13: aload 4
invokevirtual java.lang.String.length:()I
ifle 15
14: new org.apache.catalina.webresources.VirtualResource
dup
aload 3
aload 1
aload 4
invokespecial org.apache.catalina.webresources.VirtualResource.<init>:(Lorg/apache/catalina/WebResourceRoot;Ljava/lang/String;Ljava/lang/String;)V
areturn
end local 4 15: StackMap locals:
StackMap stack:
new org.apache.catalina.webresources.EmptyResource
dup
aload 3
aload 1
invokespecial org.apache.catalina.webresources.EmptyResource.<init>:(Lorg/apache/catalina/WebResourceRoot;Ljava/lang/String;)V
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lorg/apache/catalina/webresources/FileResourceSet;
0 16 1 path Ljava/lang/String;
2 16 2 webAppMount Ljava/lang/String;
3 16 3 root Lorg/apache/catalina/WebResourceRoot;
5 8 4 f Ljava/io/File;
12 15 4 name Ljava/lang/String;
MethodParameters:
Name Flags
path
public java.lang.String[] list(java.lang.String);
descriptor: (Ljava/lang/String;)[Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=4, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual org.apache.catalina.webresources.FileResourceSet.checkPath:(Ljava/lang/String;)V
1: aload 1
aload 1
invokevirtual java.lang.String.length:()I
iconst_1
isub
invokevirtual java.lang.String.charAt:(I)C
bipush 47
if_icmpeq 3
2: 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
bipush 47
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 1
3: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.apache.catalina.webresources.FileResourceSet.getWebAppMount:()Ljava/lang/String;
astore 2
start local 2 4: aload 2
aload 1
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 11
5: aload 2
aload 1
invokevirtual java.lang.String.length:()I
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 2
6: aload 2
aload 0
invokevirtual org.apache.catalina.webresources.FileResourceSet.getFileBase:()Ljava/io/File;
invokevirtual java.io.File.getName:()Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 8
7: iconst_1
anewarray java.lang.String
dup
iconst_0
aload 0
invokevirtual org.apache.catalina.webresources.FileResourceSet.getFileBase:()Ljava/io/File;
invokevirtual java.io.File.getName:()Ljava/lang/String;
aastore
areturn
8: StackMap locals: java.lang.String
StackMap stack:
aload 2
bipush 47
invokevirtual java.lang.String.indexOf:(I)I
istore 3
start local 3 9: iload 3
ifle 11
10: iconst_1
anewarray java.lang.String
dup
iconst_0
aload 2
iconst_0
iload 3
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
aastore
areturn
end local 3 11: StackMap locals:
StackMap stack:
getstatic org.apache.catalina.webresources.FileResourceSet.EMPTY_STRING_ARRAY:[Ljava/lang/String;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lorg/apache/catalina/webresources/FileResourceSet;
0 12 1 path Ljava/lang/String;
4 12 2 webAppMount Ljava/lang/String;
9 11 3 i I
MethodParameters:
Name Flags
path
public java.util.Set<java.lang.String> listWebAppPaths(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/util/Set;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=5, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual org.apache.catalina.webresources.FileResourceSet.checkPath:(Ljava/lang/String;)V
1: new org.apache.catalina.util.ResourceSet
dup
invokespecial org.apache.catalina.util.ResourceSet.<init>:()V
astore 2
start local 2 2: aload 1
aload 1
invokevirtual java.lang.String.length:()I
iconst_1
isub
invokevirtual java.lang.String.charAt:(I)C
bipush 47
if_icmpeq 4
3: 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
bipush 47
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 1
4: StackMap locals: org.apache.catalina.util.ResourceSet
StackMap stack:
aload 0
invokevirtual org.apache.catalina.webresources.FileResourceSet.getWebAppMount:()Ljava/lang/String;
astore 3
start local 3 5: aload 3
aload 1
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 13
6: aload 3
aload 1
invokevirtual java.lang.String.length:()I
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 3
7: aload 3
aload 0
invokevirtual org.apache.catalina.webresources.FileResourceSet.getFileBase:()Ljava/io/File;
invokevirtual java.io.File.getName:()Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 10
8: aload 2
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
aload 0
invokevirtual org.apache.catalina.webresources.FileResourceSet.getFileBase:()Ljava/io/File;
invokevirtual java.io.File.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual org.apache.catalina.util.ResourceSet.add:(Ljava/lang/Object;)Z
pop
9: goto 13
10: StackMap locals: java.lang.String
StackMap stack:
aload 3
bipush 47
invokevirtual java.lang.String.indexOf:(I)I
istore 4
start local 4 11: iload 4
ifle 13
12: aload 2
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
aload 3
iconst_0
iload 4
iconst_1
iadd
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual org.apache.catalina.util.ResourceSet.add:(Ljava/lang/Object;)Z
pop
end local 4 13: StackMap locals:
StackMap stack:
aload 2
iconst_1
invokevirtual org.apache.catalina.util.ResourceSet.setLocked:(Z)V
14: aload 2
areturn
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/webresources/FileResourceSet;
0 15 1 path Ljava/lang/String;
2 15 2 result Lorg/apache/catalina/util/ResourceSet<Ljava/lang/String;>;
5 15 3 webAppMount Ljava/lang/String;
11 13 4 i I
Signature: (Ljava/lang/String;)Ljava/util/Set<Ljava/lang/String;>;
MethodParameters:
Name Flags
path
public boolean mkdir(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual org.apache.catalina.webresources.FileResourceSet.checkPath:(Ljava/lang/String;)V
1: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/catalina/webresources/FileResourceSet;
0 2 1 path Ljava/lang/String;
MethodParameters:
Name Flags
path
public boolean write(java.lang.String, java.io.InputStream, boolean);
descriptor: (Ljava/lang/String;Ljava/io/InputStream;Z)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
invokevirtual org.apache.catalina.webresources.FileResourceSet.checkPath:(Ljava/lang/String;)V
1: iconst_0
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/catalina/webresources/FileResourceSet;
0 2 1 path Ljava/lang/String;
0 2 2 is Ljava/io/InputStream;
0 2 3 overwrite Z
MethodParameters:
Name Flags
path
is
overwrite
protected void checkType(java.io.File);
descriptor: (Ljava/io/File;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=8, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.io.File.isFile:()Z
ifne 4
1: new java.lang.IllegalArgumentException
dup
getstatic org.apache.catalina.webresources.FileResourceSet.sm:Lorg/apache/tomcat/util/res/StringManager;
ldc "fileResourceSet.notFile"
iconst_3
anewarray java.lang.Object
dup
iconst_0
2: aload 0
invokevirtual org.apache.catalina.webresources.FileResourceSet.getBase:()Ljava/lang/String;
aastore
dup
iconst_1
getstatic java.io.File.separator:Ljava/lang/String;
aastore
dup
iconst_2
aload 0
invokevirtual org.apache.catalina.webresources.FileResourceSet.getInternalPath:()Ljava/lang/String;
aastore
3: invokevirtual org.apache.tomcat.util.res.StringManager.getString:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/catalina/webresources/FileResourceSet;
0 5 1 file Ljava/io/File;
MethodParameters:
Name Flags
file
}
SourceFile: "FileResourceSet.java"