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.AssetConfiguration
getAssets()
Get the asset configuration.AuthConfiguration
getAuth()
Get the Auth configuration.String
getBaseUrl()
Get the base URL.CacheConfiguration
getCache()
Get the cache configuration.CORSConfiguration
getCors()
Get the CORS configuration.String
getDefaultName()
Get the application name.String
getHubUrl()
Get the websub hub URL.JsonLdConfiguration
getJsonld()
Get the namespace filename.NotificationsConfiguration
getNotifications()
Get the notifications configuration.boolean
getUseRelativeIris()
Get the configuration for relative IRIs.TrellisConfiguration
setAdditionalConfig(String name, Object value)
Set an extra configuration value.void
setAssets(AssetConfiguration assets)
Set the asset configuration.void
setAuth(AuthConfiguration auth)
Set the Auth configuration.void
setBaseUrl(String baseUrl)
Set the base URL.void
setCache(CacheConfiguration cache)
Set the cache configuration.void
setCors(CORSConfiguration cors)
Set the CORS configuration.void
setDefaultName(String name)
Set the application name.void
setHubUrl(String hubUrl)
Set the websub hub URL.void
setJsonld(JsonLdConfiguration jsonld)
Set the json-ld configuration.void
setNotifications(NotificationsConfiguration notifications)
Set the notifications configuration.void
setUseRelativeIris(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
-
-