Package org.infinispan.rest
Class CacheControl
- java.lang.Object
-
- org.infinispan.rest.CacheControl
-
public class CacheControl extends Object
A helper class for controlling Cache Control headers.- Author:
- Sebastian Ćaskawiec
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CacheControlmaxAge(int timeInSeconds)Returnsmax-ageheader value.static CacheControlnoCache()Returnsno-cacheheader value.StringtoString()
-
-
-
Method Detail
-
noCache
public static CacheControl noCache()
Returnsno-cacheheader value.- Returns:
no-cacheheader value.
-
maxAge
public static CacheControl maxAge(int timeInSeconds)
Returnsmax-ageheader value.- Parameters:
timeInSeconds- Header value in seconds.- Returns:
max-ageheader value.
-
-