|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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 browserpublic 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 HttpServletResponsepublic 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 |