org.clazzes.util.http
Class ResponseHelper

java.lang.Object
  extended by org.clazzes.util.http.ResponseHelper

public abstract class ResponseHelper
extends Object

Static helper functions for frequently needed additions to HTTP responses.


Constructor Summary
ResponseHelper()
           
 
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
 

Constructor Detail

ResponseHelper

public ResponseHelper()
Method Detail

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 © 2013. All Rights Reserved.