Class CachePolicies
java.lang.Object
com.atlassian.bamboo.plugins.rest.common.CachePolicies
Utilities to set cache policies for a request.
- Since:
- 9.4
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic javax.ws.rs.core.Response
cached
(javax.ws.rs.core.Response.ResponseBuilder responseBuilder, long timeSpanInSecond) static void
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
static javax.ws.rs.core.Response.ResponseBuilder
-
Constructor Details
-
CachePolicies
public CachePolicies()
-
-
Method Details
-
cacheFor
-
cached
public static javax.ws.rs.core.Response cached(javax.ws.rs.core.Response.ResponseBuilder responseBuilder, long timeSpanInSecond) -
setCacheControl
-
setCacheControl
public static javax.ws.rs.core.Response.ResponseBuilder setCacheControl(javax.ws.rs.core.Response.ResponseBuilder responseBuilder, String value) -
setPragma
-
setPragma
public static javax.ws.rs.core.Response.ResponseBuilder setPragma(javax.ws.rs.core.Response.ResponseBuilder responseBuilder, String value) -
setExpiration
-
setExpiration
public static javax.ws.rs.core.Response.ResponseBuilder setExpiration(javax.ws.rs.core.Response.ResponseBuilder responseBuilder, long value)
-