public final class org.glassfish.grizzly.http.server.filecache.FileCacheEntry implements java.lang.Runnable
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: org.glassfish.grizzly.http.server.filecache.FileCacheEntry
super_class: java.lang.Object
{
private static final java.util.logging.Logger LOGGER;
descriptor: Ljava/util/logging/Logger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
public org.glassfish.grizzly.http.server.filecache.FileCacheKey key;
descriptor: Lorg/glassfish/grizzly/http/server/filecache/FileCacheKey;
flags: (0x0001) ACC_PUBLIC
public java.lang.String host;
descriptor: Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
public java.lang.String requestURI;
descriptor: Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
public long lastModified;
descriptor: J
flags: (0x0001) ACC_PUBLIC
public org.glassfish.grizzly.http.util.ContentType contentType;
descriptor: Lorg/glassfish/grizzly/http/util/ContentType;
flags: (0x0001) ACC_PUBLIC
java.nio.ByteBuffer bb;
descriptor: Ljava/nio/ByteBuffer;
flags: (0x0000)
java.io.File plainFile;
descriptor: Ljava/io/File;
flags: (0x0000)
long plainFileSize;
descriptor: J
flags: (0x0000)
private boolean canBeCompressed;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private java.util.concurrent.atomic.AtomicBoolean isCompressed;
descriptor: Ljava/util/concurrent/atomic/AtomicBoolean;
flags: (0x0002) ACC_PRIVATE
volatile java.io.File compressedFile;
descriptor: Ljava/io/File;
flags: (0x0040) ACC_VOLATILE
java.nio.ByteBuffer compressedBb;
descriptor: Ljava/nio/ByteBuffer;
flags: (0x0000)
long compressedFileSize;
descriptor: J
flags: (0x0000)
public java.lang.String xPoweredBy;
descriptor: Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
public org.glassfish.grizzly.http.server.filecache.FileCache$CacheType type;
descriptor: Lorg/glassfish/grizzly/http/server/filecache/FileCache$CacheType;
flags: (0x0001) ACC_PUBLIC
public java.lang.String date;
descriptor: Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
public java.lang.String Etag;
descriptor: Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
public java.lang.String ;
descriptor: Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
public java.lang.String server;
descriptor: Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
public volatile long timeoutMillis;
descriptor: J
flags: (0x0041) ACC_PUBLIC, ACC_VOLATILE
private final org.glassfish.grizzly.http.server.filecache.FileCache fileCache;
descriptor: Lorg/glassfish/grizzly/http/server/filecache/FileCache;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lorg/glassfish/grizzly/http/server/filecache/FileCacheEntry;
invokestatic org.glassfish.grizzly.Grizzly.logger:(Ljava/lang/Class;)Ljava/util/logging/Logger;
putstatic org.glassfish.grizzly.http.server.filecache.FileCacheEntry.LOGGER:Ljava/util/logging/Logger;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(org.glassfish.grizzly.http.server.filecache.FileCache);
descriptor: (Lorg/glassfish/grizzly/http/server/filecache/FileCache;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
ldc -1
putfield org.glassfish.grizzly.http.server.filecache.FileCacheEntry.lastModified:J
2: aload 0
ldc -1
putfield org.glassfish.grizzly.http.server.filecache.FileCacheEntry.plainFileSize:J
3: aload 0
ldc -1
putfield org.glassfish.grizzly.http.server.filecache.FileCacheEntry.compressedFileSize:J
4: aload 0
aload 1
putfield org.glassfish.grizzly.http.server.filecache.FileCacheEntry.fileCache:Lorg/glassfish/grizzly/http/server/filecache/FileCache;
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/glassfish/grizzly/http/server/filecache/FileCacheEntry;
0 6 1 fileCache Lorg/glassfish/grizzly/http/server/filecache/FileCache;
MethodParameters:
Name Flags
fileCache
void setCanBeCompressed(boolean);
descriptor: (Z)V
flags: (0x0000)
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
putfield org.glassfish.grizzly.http.server.filecache.FileCacheEntry.canBeCompressed:Z
1: iload 1
ifeq 3
2: aload 0
new java.util.concurrent.atomic.AtomicBoolean
dup
invokespecial java.util.concurrent.atomic.AtomicBoolean.<init>:()V
putfield org.glassfish.grizzly.http.server.filecache.FileCacheEntry.isCompressed:Ljava/util/concurrent/atomic/AtomicBoolean;
3: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/glassfish/grizzly/http/server/filecache/FileCacheEntry;
0 4 1 canBeCompressed Z
MethodParameters:
Name Flags
canBeCompressed final
public boolean canServeCompressed(org.glassfish.grizzly.http.HttpRequestPacket);
descriptor: (Lorg/glassfish/grizzly/http/HttpRequestPacket;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.glassfish.grizzly.http.server.filecache.FileCacheEntry.canBeCompressed:Z
ifeq 1
aload 0
getfield org.glassfish.grizzly.http.server.filecache.FileCacheEntry.fileCache:Lorg/glassfish/grizzly/http/server/filecache/FileCache;
invokevirtual org.glassfish.grizzly.http.server.filecache.FileCache.getCompressionConfig:()Lorg/glassfish/grizzly/http/CompressionConfig;
aload 1
getstatic org.glassfish.grizzly.http.server.filecache.FileCache.COMPRESSION_ALIASES:[Ljava/lang/String;
invokestatic org.glassfish.grizzly.http.CompressionConfig.isClientSupportCompression:(Lorg/glassfish/grizzly/http/CompressionConfig;Lorg/glassfish/grizzly/http/HttpRequestPacket;[Ljava/lang/String;)Z
ifne 2
1: StackMap locals:
StackMap stack:
iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 0
getfield org.glassfish.grizzly.http.server.filecache.FileCacheEntry.isCompressed:Ljava/util/concurrent/atomic/AtomicBoolean;
iconst_0
iconst_1
invokevirtual java.util.concurrent.atomic.AtomicBoolean.compareAndSet:(ZZ)Z
ifeq 4
3: aload 0
getfield org.glassfish.grizzly.http.server.filecache.FileCacheEntry.fileCache:Lorg/glassfish/grizzly/http/server/filecache/FileCache;
aload 0
invokevirtual org.glassfish.grizzly.http.server.filecache.FileCache.compressFile:(Lorg/glassfish/grizzly/http/server/filecache/FileCacheEntry;)V
4: StackMap locals:
StackMap stack:
aload 0
getfield org.glassfish.grizzly.http.server.filecache.FileCacheEntry.compressedFile:Ljava/io/File;
ifnull 5
iconst_1
ireturn
StackMap locals:
StackMap stack:
5: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/glassfish/grizzly/http/server/filecache/FileCacheEntry;
0 6 1 request Lorg/glassfish/grizzly/http/HttpRequestPacket;
MethodParameters:
Name Flags
request final
public long getFileSize(boolean);
descriptor: (Z)J
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: iload 1
ifeq 1
aload 0
getfield org.glassfish.grizzly.http.server.filecache.FileCacheEntry.compressedFileSize:J
goto 2
StackMap locals:
StackMap stack:
1: aload 0
getfield org.glassfish.grizzly.http.server.filecache.FileCacheEntry.plainFileSize:J
StackMap locals:
StackMap stack: long
2: lreturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/glassfish/grizzly/http/server/filecache/FileCacheEntry;
0 3 1 isCompressed Z
MethodParameters:
Name Flags
isCompressed final
public java.io.File getFile(boolean);
descriptor: (Z)Ljava/io/File;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: iload 1
ifeq 1
aload 0
getfield org.glassfish.grizzly.http.server.filecache.FileCacheEntry.compressedFile:Ljava/io/File;
goto 2
StackMap locals:
StackMap stack:
1: aload 0
getfield org.glassfish.grizzly.http.server.filecache.FileCacheEntry.plainFile:Ljava/io/File;
StackMap locals:
StackMap stack: java.io.File
2: areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/glassfish/grizzly/http/server/filecache/FileCacheEntry;
0 3 1 isCompressed Z
MethodParameters:
Name Flags
isCompressed final
public java.nio.ByteBuffer getByteBuffer(boolean);
descriptor: (Z)Ljava/nio/ByteBuffer;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: iload 1
ifeq 1
aload 0
getfield org.glassfish.grizzly.http.server.filecache.FileCacheEntry.compressedBb:Ljava/nio/ByteBuffer;
goto 2
StackMap locals:
StackMap stack:
1: aload 0
getfield org.glassfish.grizzly.http.server.filecache.FileCacheEntry.bb:Ljava/nio/ByteBuffer;
StackMap locals:
StackMap stack: java.nio.ByteBuffer
2: areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/glassfish/grizzly/http/server/filecache/FileCacheEntry;
0 3 1 isCompressed Z
MethodParameters:
Name Flags
isCompressed final
public void run();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.http.server.filecache.FileCacheEntry.fileCache:Lorg/glassfish/grizzly/http/server/filecache/FileCache;
aload 0
invokevirtual org.glassfish.grizzly.http.server.filecache.FileCache.remove:(Lorg/glassfish/grizzly/http/server/filecache/FileCacheEntry;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/glassfish/grizzly/http/server/filecache/FileCacheEntry;
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 1
start local 1 1: aload 1
ldc "FileCacheEntry"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
2: aload 1
ldc "{host='"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield org.glassfish.grizzly.http.server.filecache.FileCacheEntry.host:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
bipush 39
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
3: aload 1
ldc ", requestURI='"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield org.glassfish.grizzly.http.server.filecache.FileCacheEntry.requestURI:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
bipush 39
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
4: aload 1
ldc ", lastModified="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield org.glassfish.grizzly.http.server.filecache.FileCacheEntry.lastModified:J
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
pop
5: aload 1
ldc ", contentType='"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield org.glassfish.grizzly.http.server.filecache.FileCacheEntry.contentType:Lorg/glassfish/grizzly/http/util/ContentType;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
bipush 39
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
6: aload 1
ldc ", type="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield org.glassfish.grizzly.http.server.filecache.FileCacheEntry.type:Lorg/glassfish/grizzly/http/server/filecache/FileCache$CacheType;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
pop
7: aload 1
ldc ", plainFileSize="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield org.glassfish.grizzly.http.server.filecache.FileCacheEntry.plainFileSize:J
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
pop
8: aload 1
ldc ", canBeCompressed="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield org.glassfish.grizzly.http.server.filecache.FileCacheEntry.canBeCompressed:Z
invokevirtual java.lang.StringBuilder.append:(Z)Ljava/lang/StringBuilder;
pop
9: aload 1
ldc ", compressedFileSize="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield org.glassfish.grizzly.http.server.filecache.FileCacheEntry.compressedFileSize:J
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
pop
10: aload 1
ldc ", timeoutMillis="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield org.glassfish.grizzly.http.server.filecache.FileCacheEntry.timeoutMillis:J
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
pop
11: aload 1
ldc ", fileCache="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield org.glassfish.grizzly.http.server.filecache.FileCacheEntry.fileCache:Lorg/glassfish/grizzly/http/server/filecache/FileCache;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
pop
12: aload 1
ldc ", server="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield org.glassfish.grizzly.http.server.filecache.FileCacheEntry.server:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
13: aload 1
bipush 125
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
14: aload 1
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lorg/glassfish/grizzly/http/server/filecache/FileCacheEntry;
1 15 1 sb Ljava/lang/StringBuilder;
protected void finalize();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.http.server.filecache.FileCacheEntry.compressedFile:Ljava/io/File;
ifnull 5
1: aload 0
getfield org.glassfish.grizzly.http.server.filecache.FileCacheEntry.compressedFile:Ljava/io/File;
invokevirtual java.io.File.delete:()Z
ifne 5
2: getstatic org.glassfish.grizzly.http.server.filecache.FileCacheEntry.LOGGER:Ljava/util/logging/Logger;
getstatic java.util.logging.Level.FINE:Ljava/util/logging/Level;
invokevirtual java.util.logging.Logger.isLoggable:(Ljava/util/logging/Level;)Z
ifeq 4
3: getstatic org.glassfish.grizzly.http.server.filecache.FileCacheEntry.LOGGER:Ljava/util/logging/Logger;
getstatic java.util.logging.Level.FINE:Ljava/util/logging/Level;
ldc "Unable to delete file {0}. Will try to delete again upon VM exit."
aload 0
getfield org.glassfish.grizzly.http.server.filecache.FileCacheEntry.compressedFile:Ljava/io/File;
invokevirtual java.io.File.getCanonicalPath:()Ljava/lang/String;
invokevirtual java.util.logging.Logger.log:(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Object;)V
4: StackMap locals:
StackMap stack:
aload 0
getfield org.glassfish.grizzly.http.server.filecache.FileCacheEntry.compressedFile:Ljava/io/File;
invokevirtual java.io.File.deleteOnExit:()V
5: StackMap locals:
StackMap stack:
aload 0
invokespecial java.lang.Object.finalize:()V
6: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/glassfish/grizzly/http/server/filecache/FileCacheEntry;
Exceptions:
throws java.lang.Throwable
}
SourceFile: "FileCacheEntry.java"
InnerClasses:
public final CacheType = org.glassfish.grizzly.http.server.filecache.FileCache$CacheType of org.glassfish.grizzly.http.server.filecache.FileCache