Package org.infinispan.rest
Class CacheControl
- java.lang.Object
-
- org.infinispan.rest.CacheControl
-
public class CacheControl extends java.lang.ObjectA 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.java.lang.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.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-