Class CachePolicies

java.lang.Object
com.atlassian.bamboo.plugins.rest.common.CachePolicies

public class CachePolicies extends Object
Utilities to set cache policies for a request.
Since:
9.4
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static javax.ws.rs.core.Response
    cached(javax.ws.rs.core.Response.ResponseBuilder responseBuilder, long timeSpanInSecond)
     
    static void
    cacheFor(javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, long timeSpanInSecond)
     
    static void
    setCacheControl(javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, String value)
     
    static javax.ws.rs.core.Response.ResponseBuilder
    setCacheControl(javax.ws.rs.core.Response.ResponseBuilder responseBuilder, String value)
     
    static void
    setExpiration(javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, long value)
     
    static javax.ws.rs.core.Response.ResponseBuilder
    setExpiration(javax.ws.rs.core.Response.ResponseBuilder responseBuilder, long value)
     
    static void
    setPragma(javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, String value)
     
    static javax.ws.rs.core.Response.ResponseBuilder
    setPragma(javax.ws.rs.core.Response.ResponseBuilder responseBuilder, String value)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CachePolicies

      public CachePolicies()
  • Method Details

    • cacheFor

      public static void cacheFor(javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, long timeSpanInSecond)
    • cached

      public static javax.ws.rs.core.Response cached(javax.ws.rs.core.Response.ResponseBuilder responseBuilder, long timeSpanInSecond)
    • setCacheControl

      public static void setCacheControl(javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, String value)
    • setCacheControl

      public static javax.ws.rs.core.Response.ResponseBuilder setCacheControl(javax.ws.rs.core.Response.ResponseBuilder responseBuilder, String value)
    • setPragma

      public static void setPragma(javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, String value)
    • setPragma

      public static javax.ws.rs.core.Response.ResponseBuilder setPragma(javax.ws.rs.core.Response.ResponseBuilder responseBuilder, String value)
    • setExpiration

      public static void setExpiration(javax.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, long value)
    • setExpiration

      public static javax.ws.rs.core.Response.ResponseBuilder setExpiration(javax.ws.rs.core.Response.ResponseBuilder responseBuilder, long value)