|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.day.cq.portlet.cache.CacheValue
public class CacheValue
The CacheValue represents a cached value in the
Cache.
A cached content is the content itself, a corresponding
content type and character encoding.
Additionally an expires value defining a date when the
value expires. A value of zero 0 or a negativ value
means the entry never expires.
| Constructor Summary | |
|---|---|
CacheValue()
|
|
| Method Summary | |
|---|---|
String |
getCharacterEncoding()
Get the character encoding of the content. |
byte[] |
getContent()
Get the cached content. |
String |
getContentType()
Get the content type for the cached content. |
long |
getExpires()
Return the expires information. |
void |
setCharacterEncoding(String characterEncoding)
Set the character encoding for the content. |
void |
setContent(byte[] content)
Set the cached content. |
void |
setContentType(String contentType)
Set the content type for the cached content. |
void |
setExpires(long value)
Set the expires information. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CacheValue()
| Method Detail |
|---|
public String getContentType()
public void setContentType(String contentType)
contentType - The content type.public String getCharacterEncoding()
nullpublic void setCharacterEncoding(String characterEncoding)
characterEncoding - The encoding.public byte[] getContent()
public void setContent(byte[] content)
content - The content.public void setExpires(long value)
value - The expires information.public long getExpires()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||