com.atlassian.jira.util.http
Class JiraHttpUtils

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

@PublicApi
public class JiraHttpUtils
extends Object

Utility methods for HTTP-level operations

Since:
v3.12.3

Constructor Summary
JiraHttpUtils()
           
 
Method Summary
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
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JiraHttpUtils

public JiraHttpUtils()
Method Detail

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)


Copyright © 2002-2014 Atlassian. All Rights Reserved.