public final class FileCacheEntry
extends java.lang.Object
implements java.lang.Runnable
| Modifier and Type | Field and Description |
|---|---|
ContentType |
contentType |
java.lang.String |
date |
java.lang.String |
Etag |
java.lang.String |
host |
FileCacheKey |
key |
long |
lastModified |
java.lang.String |
lastModifiedHeader |
java.lang.String |
requestURI |
java.lang.String |
server |
long |
timeoutMillis |
FileCache.CacheType |
type |
java.lang.String |
xPoweredBy |
| Constructor and Description |
|---|
FileCacheEntry(FileCache fileCache) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canServeCompressed(HttpRequestPacket request)
Returns true if this entry could be served compressed as response
to this (passed) specific
HttpRequestPacket. |
protected void |
finalize() |
java.nio.ByteBuffer |
getByteBuffer(boolean isCompressed)
Returns the entry's
ByteBuffer representation. |
java.io.File |
getFile(boolean isCompressed)
Returns the entry's
File reference. |
long |
getFileSize(boolean isCompressed)
Returns the entry file size.
|
void |
run() |
java.lang.String |
toString() |
public FileCacheKey key
public java.lang.String host
public java.lang.String requestURI
public long lastModified
public ContentType contentType
public java.lang.String xPoweredBy
public FileCache.CacheType type
public java.lang.String date
public java.lang.String Etag
public java.lang.String lastModifiedHeader
public java.lang.String server
public volatile long timeoutMillis
public FileCacheEntry(FileCache fileCache)
public boolean canServeCompressed(HttpRequestPacket request)
HttpRequestPacket. Or false
will be returned otherwise.public long getFileSize(boolean isCompressed)
isCompressed - if true the compressed file size will be
returned, otherwise uncompressed file size will be returned as the result.public java.io.File getFile(boolean isCompressed)
File reference.isCompressed - if true the compressed File reference
will be returned, otherwise uncompressed File reference will
be returned as the result.File referencepublic java.nio.ByteBuffer getByteBuffer(boolean isCompressed)
ByteBuffer representation.isCompressed - if true the compressed ByteBuffer
will be returned, otherwise uncompressed ByteBuffer will
be returned as the result.ByteBuffer referencepublic void run()
run in interface java.lang.Runnablepublic java.lang.String toString()
toString in class java.lang.Objectprotected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.ThrowableCopyright © 2013 Oracle Corporation. All Rights Reserved.