Package org.trellisldp.dropwizard.config
Class WebacConfiguration
- java.lang.Object
-
- org.trellisldp.dropwizard.config.WebacConfiguration
-
public class WebacConfiguration extends Object
-
-
Constructor Summary
Constructors Constructor Description WebacConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getCacheExpireSeconds()
Get the cache expire time in seconds.long
getCacheSize()
Get the maximum size of the cache.boolean
getEnabled()
Get whether basic authentication has been enabled.void
setCacheExpireSeconds(long cacheExpireSeconds)
Set the cache exprie time in seconds.void
setCacheSize(long cacheSize)
Set the maxiumum size of the cache.void
setEnabled(boolean enabled)
Enable or disable basic authentication.
-
-
-
Method Detail
-
getEnabled
public boolean getEnabled()
Get whether basic authentication has been enabled.- Returns:
- true if basic auth is enabled; false otherwise
-
setEnabled
public void setEnabled(boolean enabled)
Enable or disable basic authentication.- Parameters:
enabled
- true if basic auth is enabled; false otherwise
-
getCacheSize
public long getCacheSize()
Get the maximum size of the cache.- Returns:
- the maximum size of the cache (default=1000)
-
setCacheSize
public void setCacheSize(long cacheSize)
Set the maxiumum size of the cache.- Parameters:
cacheSize
- the size of the cache
-
getCacheExpireSeconds
public long getCacheExpireSeconds()
Get the cache expire time in seconds.- Returns:
- the number of seconds after which an element expires (default=600)
-
setCacheExpireSeconds
public void setCacheExpireSeconds(long cacheExpireSeconds)
Set the cache exprie time in seconds.- Parameters:
cacheExpireSeconds
- the number of seconds after which an element expires
-
-