Class TrellisConfiguration


  • public class TrellisConfiguration
    extends io.dropwizard.Configuration
    • Constructor Detail

      • TrellisConfiguration

        public TrellisConfiguration()
    • Method Detail

      • getBaseUrl

        public String getBaseUrl()
        Get the base URL.
        Returns:
        the baseURL
      • setBaseUrl

        public void setBaseUrl​(String baseUrl)
        Set the base URL.
        Parameters:
        baseUrl - the baseURL
      • getHubUrl

        public String getHubUrl()
        Get the websub hub URL.
        Returns:
        the websub hub URL
      • setHubUrl

        public void setHubUrl​(String hubUrl)
        Set the websub hub URL.
        Parameters:
        hubUrl - the hub URL
      • setAssets

        public void setAssets​(AssetConfiguration assets)
        Set the asset configuration.
        Parameters:
        assets - the asset config
      • getAssets

        public AssetConfiguration getAssets()
        Get the asset configuration.
        Returns:
        the asset config
      • getDefaultName

        public String getDefaultName()
        Get the application name.
        Returns:
        the name
      • setDefaultName

        public void setDefaultName​(String name)
        Set the application name.
        Parameters:
        name - the name
      • setAdditionalConfig

        public TrellisConfiguration setAdditionalConfig​(String name,
                                                        Object value)
        Set an extra configuration value.
        Parameters:
        name - the name of this config value
        value - the value to set
        Returns:
        this config for chaining
      • any

        public Map<String,​Object> any()
        Get any extra metadata.
        Returns:
        a Map of any extra metadata
      • setCache

        public void setCache​(CacheConfiguration cache)
        Set the cache configuration.
        Parameters:
        cache - the cache configuration
      • getCache

        public CacheConfiguration getCache()
        Get the cache configuration.
        Returns:
        the cache configuration
      • setCors

        public void setCors​(CORSConfiguration cors)
        Set the CORS configuration.
        Parameters:
        cors - the CORS configuration
      • getCors

        public CORSConfiguration getCors()
        Get the CORS configuration.
        Returns:
        the CORS configuration
      • setAuth

        public void setAuth​(AuthConfiguration auth)
        Set the Auth configuration.
        Parameters:
        auth - the Auth configuration
      • getAuth

        public AuthConfiguration getAuth()
        Get the Auth configuration.
        Returns:
        the Auth configuration
      • setJsonld

        public void setJsonld​(JsonLdConfiguration jsonld)
        Set the json-ld configuration.
        Parameters:
        jsonld - the jsond-ld configuration
      • getJsonld

        public JsonLdConfiguration getJsonld()
        Get the namespace filename.
        Returns:
        the json-ld configuration
      • setUseRelativeIris

        public void setUseRelativeIris​(boolean useRelativeIris)
        Set the configuration for relative IRIs.
        Parameters:
        useRelativeIris - whether to use relative IRIs
      • getUseRelativeIris

        public boolean getUseRelativeIris()
        Get the configuration for relative IRIs.
        Returns:
        true if using relative IRIs; false otherwise
      • setNotifications

        public void setNotifications​(NotificationsConfiguration notifications)
        Set the notifications configuration.
        Parameters:
        notifications - the notifications configuration
      • getNotifications

        public NotificationsConfiguration getNotifications()
        Get the notifications configuration.
        Returns:
        the notifications configuration