Package org.trellisldp.dropwizard.config
Class CacheConfiguration
- java.lang.Object
-
- org.trellisldp.dropwizard.config.CacheConfiguration
-
public class CacheConfiguration extends Object
Cache-related configuration.
-
-
Constructor Summary
Constructors Constructor Description CacheConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetMaxAge()Get the value of the cache max age.booleangetMustRevalidate()Get the value of the must-revalidate value.booleangetNoCache()Get the value of the no-cache value.voidsetMaxAge(int maxAge)Set the cache max-age value.voidsetMustRevalidate(boolean mustRevalidate)Set the cache must-revalidate value.voidsetNoCache(boolean noCache)Set the no-cache value.
-
-
-
Method Detail
-
setMaxAge
public void setMaxAge(int maxAge)
Set the cache max-age value.- Parameters:
maxAge- the cache max age header value
-
getMaxAge
public int getMaxAge()
Get the value of the cache max age.- Returns:
- the cache max age header value
-
setMustRevalidate
public void setMustRevalidate(boolean mustRevalidate)
Set the cache must-revalidate value.- Parameters:
mustRevalidate- the cache must-revalidate header value
-
getMustRevalidate
public boolean getMustRevalidate()
Get the value of the must-revalidate value.- Returns:
- the must-revalidate value
-
setNoCache
public void setNoCache(boolean noCache)
Set the no-cache value.- Parameters:
noCache- the no-cache header value
-
getNoCache
public boolean getNoCache()
Get the value of the no-cache value.- Returns:
- the no-cache value
-
-