|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.loom.servlet.CacheControl
public class CacheControl
Contains the caching information related to the response object. This information tells the browser about how it is expected to cache the server response.
| Constructor Summary | |
|---|---|
CacheControl()
|
|
| Method Summary | |
|---|---|
java.lang.Boolean |
getCacheNever()
|
java.lang.Integer |
getCacheSeconds()
|
java.lang.String |
getEtag()
|
java.util.Date |
getLastModified()
|
boolean |
isResourceModified(LoomServletRequest request)
Compares this CacheControl data with the request headers, and returns true if the browser page is outdated and a new one should be sent. |
void |
setCacheForever()
Sets the response to never expire |
void |
setCacheNever()
|
void |
setCacheSeconds(java.lang.Integer cacheSeconds)
|
void |
setEtag(java.lang.String etag)
|
void |
setLastModified(java.util.Date lastModified)
|
void |
writeHeaders(LoomServletResponse response)
Write the headers for a 200 (OK) or 304 (NOT_MODIFIED) response. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CacheControl()
| Method Detail |
|---|
public boolean isResourceModified(LoomServletRequest request)
request - the current servlet request
public void writeHeaders(LoomServletResponse response)
public void setCacheForever()
public java.util.Date getLastModified()
public void setLastModified(java.util.Date lastModified)
public java.lang.String getEtag()
public void setEtag(java.lang.String etag)
public java.lang.Integer getCacheSeconds()
public void setCacheSeconds(java.lang.Integer cacheSeconds)
public java.lang.Boolean getCacheNever()
public void setCacheNever()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||