public abstract class org.apache.catalina.webresources.AbstractResource implements org.apache.catalina.WebResource
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: org.apache.catalina.webresources.AbstractResource
super_class: java.lang.Object
{
protected static final org.apache.tomcat.util.res.StringManager sm;
descriptor: Lorg/apache/tomcat/util/res/StringManager;
flags: (0x001c) ACC_PROTECTED, ACC_STATIC, ACC_FINAL
private final org.apache.catalina.WebResourceRoot root;
descriptor: Lorg/apache/catalina/WebResourceRoot;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.String webAppPath;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private java.lang.String mimeType;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private volatile java.lang.String weakETag;
descriptor: Ljava/lang/String;
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lorg/apache/catalina/webresources/AbstractResource;
invokestatic org.apache.tomcat.util.res.StringManager.getManager:(Ljava/lang/Class;)Lorg/apache/tomcat/util/res/StringManager;
putstatic org.apache.catalina.webresources.AbstractResource.sm:Lorg/apache/tomcat/util/res/StringManager;
return
LocalVariableTable:
Start End Slot Name Signature
protected void <init>(org.apache.catalina.WebResourceRoot, java.lang.String);
descriptor: (Lorg/apache/catalina/WebResourceRoot;Ljava/lang/String;)V
flags: (0x0004) ACC_PROTECTED
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
aconst_null
putfield org.apache.catalina.webresources.AbstractResource.mimeType:Ljava/lang/String;
2: aload 0
aload 1
putfield org.apache.catalina.webresources.AbstractResource.root:Lorg/apache/catalina/WebResourceRoot;
3: aload 0
aload 2
putfield org.apache.catalina.webresources.AbstractResource.webAppPath:Ljava/lang/String;
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/catalina/webresources/AbstractResource;
0 5 1 root Lorg/apache/catalina/WebResourceRoot;
0 5 2 webAppPath Ljava/lang/String;
MethodParameters:
Name Flags
root
webAppPath
public final org.apache.catalina.WebResourceRoot getWebResourceRoot();
descriptor: ()Lorg/apache/catalina/WebResourceRoot;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.catalina.webresources.AbstractResource.root:Lorg/apache/catalina/WebResourceRoot;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/catalina/webresources/AbstractResource;
public final java.lang.String getWebappPath();
descriptor: ()Ljava/lang/String;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.catalina.webresources.AbstractResource.webAppPath:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/catalina/webresources/AbstractResource;
public final java.lang.String getLastModifiedHttp();
descriptor: ()Ljava/lang/String;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.apache.catalina.webresources.AbstractResource.getLastModified:()J
invokestatic org.apache.tomcat.util.http.FastHttpDateFormat.formatDate:(J)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/catalina/webresources/AbstractResource;
public final java.lang.String getETag();
descriptor: ()Ljava/lang/String;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=4, locals=6, args_size=1
start local 0 0: aload 0
getfield org.apache.catalina.webresources.AbstractResource.weakETag:Ljava/lang/String;
ifnonnull 13
1: aload 0
dup
astore 1
monitorenter
2: aload 0
getfield org.apache.catalina.webresources.AbstractResource.weakETag:Ljava/lang/String;
ifnonnull 9
3: aload 0
invokevirtual org.apache.catalina.webresources.AbstractResource.getContentLength:()J
lstore 2
start local 2 4: aload 0
invokevirtual org.apache.catalina.webresources.AbstractResource.getLastModified:()J
lstore 4
start local 4 5: lload 2
lconst_0
lcmp
ifge 6
lload 4
lconst_0
lcmp
iflt 9
6: StackMap locals: org.apache.catalina.webresources.AbstractResource long long
StackMap stack:
aload 0
new java.lang.StringBuilder
dup
ldc "W/\""
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
lload 2
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
ldc "-"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
7: lload 4
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
ldc "\""
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
8: putfield org.apache.catalina.webresources.AbstractResource.weakETag:Ljava/lang/String;
end local 4 end local 2 9: StackMap locals:
StackMap stack:
aload 1
monitorexit
10: goto 13
StackMap locals:
StackMap stack: java.lang.Throwable
11: aload 1
monitorexit
12: athrow
13: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.catalina.webresources.AbstractResource.weakETag:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lorg/apache/catalina/webresources/AbstractResource;
4 9 2 contentLength J
5 9 4 lastModified J
Exception table:
from to target type
2 10 11 any
11 12 11 any
public final void setMimeType(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield org.apache.catalina.webresources.AbstractResource.mimeType:Ljava/lang/String;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/catalina/webresources/AbstractResource;
0 2 1 mimeType Ljava/lang/String;
MethodParameters:
Name Flags
mimeType
public final java.lang.String getMimeType();
descriptor: ()Ljava/lang/String;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.catalina.webresources.AbstractResource.mimeType:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/catalina/webresources/AbstractResource;
public final java.io.InputStream getInputStream();
descriptor: ()Ljava/io/InputStream;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=5, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual org.apache.catalina.webresources.AbstractResource.doGetInputStream:()Ljava/io/InputStream;
astore 1
start local 1 1: aload 1
ifnull 2
aload 0
getfield org.apache.catalina.webresources.AbstractResource.root:Lorg/apache/catalina/WebResourceRoot;
invokeinterface org.apache.catalina.WebResourceRoot.getTrackLockedFiles:()Z
ifne 3
2: StackMap locals: java.io.InputStream
StackMap stack:
aload 1
areturn
3: StackMap locals:
StackMap stack:
new org.apache.catalina.webresources.TrackedInputStream
dup
aload 0
getfield org.apache.catalina.webresources.AbstractResource.root:Lorg/apache/catalina/WebResourceRoot;
aload 0
invokevirtual org.apache.catalina.webresources.AbstractResource.getName:()Ljava/lang/String;
aload 1
invokespecial org.apache.catalina.webresources.TrackedInputStream.<init>:(Lorg/apache/catalina/WebResourceRoot;Ljava/lang/String;Ljava/io/InputStream;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/catalina/webresources/AbstractResource;
1 4 1 is Ljava/io/InputStream;
protected abstract java.io.InputStream doGetInputStream();
descriptor: ()Ljava/io/InputStream;
flags: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
protected abstract org.apache.juli.logging.Log getLog();
descriptor: ()Lorg/apache/juli/logging/Log;
flags: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
}
SourceFile: "AbstractResource.java"