|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tapestry.asset.CachedAsset
public class CachedAsset
Wrapper around cached asset resource.
Constructor Summary | |
---|---|
CachedAsset(String path,
long lastModified,
byte[] data,
byte[] gzipData)
Creates a new cachable asset entry. |
Method Summary | |
---|---|
void |
clear(long lastModified)
Clears the currently cached data and resets the last modified time. |
boolean |
equals(Object obj)
|
byte[] |
getData()
|
byte[] |
getGzipData()
|
long |
getLastModified()
|
String |
getPath()
|
int |
hashCode()
|
void |
setData(byte[] data)
|
void |
setGzipData(byte[] gzipData)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CachedAsset(String path, long lastModified, byte[] data, byte[] gzipData)
path
- The path string of the resource.lastModified
- The last known modification time of the data this cached object
represents. Is used to invalidate cache entries.data
- The data representation to cache.gzipData
- The optional gzip'ed data.Method Detail |
---|
public byte[] getData()
public void setData(byte[] data)
data
- The data to set.public byte[] getGzipData()
public void setGzipData(byte[] gzipData)
gzipData
- The gzipData to set.public String getPath()
public long getLastModified()
public void clear(long lastModified)
lastModified
- The lastModified to set.public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |