Class JiraHttpUtils

java.lang.Object
com.atlassian.jira.util.http.JiraHttpUtils

@PublicApi public class JiraHttpUtils extends Object
Utility methods for HTTP-level operations
Since:
v3.12.3
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    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
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      public static 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 code
      Parameters:
      requestHeaders - wrapper object around a response (used in SearchRequestViews)