Class JsonLdConfiguration


  • public class JsonLdConfiguration
    extends Object
    A configuration to control how custom JSON-LD profiles are handled.
    • Constructor Detail

      • JsonLdConfiguration

        public JsonLdConfiguration()
    • 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