|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.cc.framework.http.CacheControl
Helper class for setting the cache options of the HTTP header.
| Constructor Summary | |
private |
CacheControl()
Constructor |
| Method Summary | |
static void |
clearCache(javax.servlet.http.HttpServletResponse response)
Clears the cache options |
static void |
setCache(javax.servlet.http.HttpServletResponse response,
boolean noCache)
Sets the cache options |
static void |
setCache(javax.servlet.http.HttpServletResponse response,
boolean noCache,
int expiration)
Sets the cache options |
static void |
setExpiration(javax.servlet.http.HttpServletResponse response,
int expiration)
Sets the expiration date |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
private CacheControl()
| Method Detail |
public static final void setCache(javax.servlet.http.HttpServletResponse response,
boolean noCache)
response - the HttpServletResponsenoCache - true if the page should not be cached by the browser
public static final void setCache(javax.servlet.http.HttpServletResponse response,
boolean noCache,
int expiration)
response - the HttpServletResponsenoCache - true if the page should not be cached by the browserexpiration - the the expiration date of the pagepublic static final void clearCache(javax.servlet.http.HttpServletResponse response)
response - the HttpServletResponse
public static final void setExpiration(javax.servlet.http.HttpServletResponse response,
int expiration)
response - the HttpServletResponseexpiration - the expiration date of the page
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||