org.clazzes.util.http
Class ResponseHelper
java.lang.Object
org.clazzes.util.http.ResponseHelper
public abstract class ResponseHelper
- extends Object
Static helper functions for frequently needed additions to HTTP responses.
Method Summary |
static void |
setNoCacheHeaders(javax.servlet.http.HttpServletResponse resp)
Set the following HTTP headers fields in order to mark the servlet's
output as purely dynamic content not to be cached by any browser. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResponseHelper
public ResponseHelper()
setNoCacheHeaders
public static final void setNoCacheHeaders(javax.servlet.http.HttpServletResponse resp)
- Set the following HTTP headers fields in order to mark the servlet's
output as purely dynamic content not to be cached by any browser.
Cache-Control: no-cache
Pragma: no-cache
Expires: 0
- Parameters:
resp
- The servlet response to be marked as dynamic content.
Copyright © 2012. All Rights Reserved.