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 CacheControl
maxAge(int timeInSeconds)
Returnsmax-age
header value.static CacheControl
noCache()
Returnsno-cache
header value.String
toString()
-
-
-
Method Detail
-
noCache
public static CacheControl noCache()
Returnsno-cache
header value.- Returns:
no-cache
header value.
-
maxAge
public static CacheControl maxAge(int timeInSeconds)
Returnsmax-age
header value.- Parameters:
timeInSeconds
- Header value in seconds.- Returns:
max-age
header value.
-
toString
public String toString()
-
-