Modifier and Type | Field and Description |
---|---|
String |
contentType |
String |
date |
String |
Etag |
String |
host |
FileCacheKey |
key |
long |
lastModified |
String |
lastModifiedHeader |
String |
requestURI |
String |
server |
long |
timeoutMillis |
FileCache.CacheType |
type |
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() |
ByteBuffer |
getByteBuffer(boolean isCompressed)
Returns the entry's
ByteBuffer representation. |
File |
getFile(boolean isCompressed)
Returns the entry's
File reference. |
long |
getFileSize(boolean isCompressed)
Returns the entry file size.
|
void |
run() |
String |
toString() |
public FileCacheKey key
public String host
public String requestURI
public long lastModified
public String contentType
public String xPoweredBy
public FileCache.CacheType type
public String date
public String Etag
public String lastModifiedHeader
public 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 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
referenceCopyright © 2014 Oracle Corporation. All rights reserved.