Package com.atlassian.jira.util.http
Class JiraHttpUtils
java.lang.Object
com.atlassian.jira.util.http.JiraHttpUtils
Utility methods for HTTP-level operations
- Since:
- v3.12.3
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
setNoCacheHeaders
(RequestHeaders requestHeaders) Sets the Cache-Control, Pragma and Expires headers on a response so that the response content will not be cached Note: this is a convenience method for existing SearchRequestView codestatic void
setNoCacheHeaders
(javax.servlet.http.HttpServletResponse response) Sets the Cache-Control, Pragma and Expires headers on a response so that the response content will not be cached
-
Constructor Details
-
JiraHttpUtils
public JiraHttpUtils()
-
-
Method Details
-
setNoCacheHeaders
public static void setNoCacheHeaders(javax.servlet.http.HttpServletResponse response) Sets the Cache-Control, Pragma and Expires headers on a response so that the response content will not be cached- Parameters:
response
- the response object
-
setNoCacheHeaders
Sets the Cache-Control, Pragma and Expires headers on a response so that the response content will not be cached Note: this is a convenience method for existing SearchRequestView code- Parameters:
requestHeaders
- wrapper object around a response (used in SearchRequestViews)
-