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 int
getMaxAge()
Get the value of the cache max age.boolean
getMustRevalidate()
Get the value of the must-revalidate value.boolean
getNoCache()
Get the value of the no-cache value.void
setMaxAge(int maxAge)
Set the cache max-age value.void
setMustRevalidate(boolean mustRevalidate)
Set the cache must-revalidate value.void
setNoCache(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
-
-