Package org.trellisldp.dropwizard.config
Class TrellisConfiguration
- java.lang.Object
-
- io.dropwizard.Configuration
-
- org.trellisldp.dropwizard.config.TrellisConfiguration
-
public class TrellisConfiguration extends io.dropwizard.Configuration
-
-
Constructor Summary
Constructors Constructor Description TrellisConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>any()Get any extra metadata.AssetConfigurationgetAssets()Get the asset configuration.AuthConfigurationgetAuth()Get the Auth configuration.StringgetBaseUrl()Get the base URL.CacheConfigurationgetCache()Get the cache configuration.CORSConfigurationgetCors()Get the CORS configuration.StringgetDefaultName()Get the application name.StringgetHubUrl()Get the websub hub URL.JsonLdConfigurationgetJsonld()Get the namespace filename.NotificationsConfigurationgetNotifications()Get the notifications configuration.booleangetUseRelativeIris()Get the configuration for relative IRIs.TrellisConfigurationsetAdditionalConfig(String name, Object value)Set an extra configuration value.voidsetAssets(AssetConfiguration assets)Set the asset configuration.voidsetAuth(AuthConfiguration auth)Set the Auth configuration.voidsetBaseUrl(String baseUrl)Set the base URL.voidsetCache(CacheConfiguration cache)Set the cache configuration.voidsetCors(CORSConfiguration cors)Set the CORS configuration.voidsetDefaultName(String name)Set the application name.voidsetHubUrl(String hubUrl)Set the websub hub URL.voidsetJsonld(JsonLdConfiguration jsonld)Set the json-ld configuration.voidsetNotifications(NotificationsConfiguration notifications)Set the notifications configuration.voidsetUseRelativeIris(boolean useRelativeIris)Set the configuration for relative IRIs.
-
-
-
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 valuevalue- the value to set- Returns:
- this config for chaining
-
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
-
-