|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnl.hippo.client.api.caching.CachedResponseImpl
public class CachedResponseImpl
| Constructor Summary | |
|---|---|
CachedResponseImpl(EventValidity[] validityObjects,
Object response)
Create a new entry for the cache. |
|
CachedResponseImpl(EventValidity[] validityObjects,
Object response,
Long expires)
Create a new entry for the cache. |
|
CachedResponseImpl(EventValidity validityObject,
Object response)
Create a new entry for the cache. |
|
| Method Summary | |
|---|---|
String |
getContentType()
|
Long |
getExpires()
Get the configured expires. |
long |
getLastModified()
|
Object |
getResponse()
Get the cached response. |
SourceValidity[] |
getValidityObjects()
Get the validity objects |
void |
setContentType(String value)
|
void |
setExpires(Long newExpires)
Set the (newly) configured expires. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CachedResponseImpl(EventValidity[] validityObjects,
Object response)
validityObjects - The SourceValidity objects in the order they occured in the
pipelineresponse - The cached sax stream or character stream
public CachedResponseImpl(EventValidity validityObject,
Object response)
validityObject - The SourceValidity objectresponse - The cached sax stream or character stream
public CachedResponseImpl(EventValidity[] validityObjects,
Object response,
Long expires)
validityObjects - The SourceValidity objects in the order they occured in the
pipelineresponse - The cached sax stream or character streamexpires - The configured expires, or null if no expires was defined.| Method Detail |
|---|
public SourceValidity[] getValidityObjects()
getValidityObjects in interface CachedResponsepublic Object getResponse()
getResponse in interface CachedResponsepublic Long getExpires()
getExpires in interface CachedResponsepublic void setExpires(Long newExpires)
public long getLastModified()
getLastModified in interface CachedResponsepublic String getContentType()
getContentType in interface CachedResponsepublic void setContentType(String value)
value - The content type to cache.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||