Package org.trellisldp.dropwizard.config
Class JsonLdConfiguration
- java.lang.Object
-
- org.trellisldp.dropwizard.config.JsonLdConfiguration
-
public class JsonLdConfiguration extends Object
A configuration to control how custom JSON-LD profiles are handled.
-
-
Constructor Summary
Constructors Constructor Description JsonLdConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<String>
getAllowedContextDomains()
Get the allowed domains for custom JSON-LD profiles.Set<String>
getAllowedContexts()
Get the list of allowed custom JSON-LD profiles.long
getCacheExpireHours()
Get the JSON-LD profile cache expire time in hours (default=24).long
getCacheSize()
Get the JSON-LD profile cache size (default=100).void
setAllowedContextDomains(Set<String> allowedDomains)
Set the allowed domains for custom JSON-LD profiles.void
setAllowedContexts(Set<String> allowed)
Set the list of allowed custom JSON-LD profiles.void
setCacheExpireHours(long profileCacheExpireHours)
Set the JSON-LD profile cache exire time in hours.void
setCacheSize(long profileCacheSize)
Set the JSON-LD profile cache size.
-
-
-
Method Detail
-
getAllowedContexts
public Set<String> getAllowedContexts()
Get the list of allowed custom JSON-LD profiles.- Returns:
- the json-ld profile allow list
-
setAllowedContexts
public void setAllowedContexts(Set<String> allowed)
Set the list of allowed custom JSON-LD profiles.- Parameters:
allowed
- the allowed json-ld profiles
-
getAllowedContextDomains
public Set<String> getAllowedContextDomains()
Get the allowed domains for custom JSON-LD profiles.- Returns:
- the json-ld profile domain list
-
setAllowedContextDomains
public void setAllowedContextDomains(Set<String> allowedDomains)
Set the allowed domains for custom JSON-LD profiles.- Parameters:
allowedDomains
- the json-ld domain profile witelist
-
getCacheExpireHours
public long getCacheExpireHours()
Get the JSON-LD profile cache expire time in hours (default=24).- Returns:
- the json-ld profile cache expire time in hours
-
setCacheExpireHours
public void setCacheExpireHours(long profileCacheExpireHours)
Set the JSON-LD profile cache exire time in hours.- Parameters:
profileCacheExpireHours
- the json-ld profile cache expire time in hours.
-
getCacheSize
public long getCacheSize()
Get the JSON-LD profile cache size (default=100).- Returns:
- the json-ld profile cache size
-
setCacheSize
public void setCacheSize(long profileCacheSize)
Set the JSON-LD profile cache size.- Parameters:
profileCacheSize
- the size of the json-ld profile cache
-
-