public abstract class BaseChainedConfigContext extends Object implements ConfigContext
ConfigContext that allows for chaining
in default implementations of configuration that are delegate to when
we aren't passed a value.| Modifier and Type | Field and Description |
|---|---|
static ConfigContext |
DEFAULT_CONFIG
Singleton instance of default configuration for easy reference.
|
| Constructor and Description |
|---|
BaseChainedConfigContext()
Constructor that prepopulates configuration context with the default
values.
|
BaseChainedConfigContext(ConfigContext defaultingContext)
Constructor that takes a default value for each one of the configuration
values.
|
public static final ConfigContext DEFAULT_CONFIG
public BaseChainedConfigContext()
public BaseChainedConfigContext(ConfigContext defaultingContext)
defaultingContext - context that provides default valuespublic String getEnvironment()
getEnvironment in interface ConfigContextpublic BaseChainedConfigContext setEnvironment(String environment)
public URI getHoneybadgerUrl()
getHoneybadgerUrl in interface ConfigContextpublic BaseChainedConfigContext setHoneybadgerUrl(URI honeybadgerUrl)
public String getApiKey()
getApiKey in interface ConfigContextpublic BaseChainedConfigContext setApiKey(String apiKey)
public Set<String> getExcludedSysProps()
getExcludedSysProps in interface ConfigContextpublic BaseChainedConfigContext setExcludedSysProps(Set<String> excludedSysProps)
public Set<String> getExcludedParams()
getExcludedParams in interface ConfigContextpublic BaseChainedConfigContext setExcludedParams(Set<String> excludedParams)
public Set<String> getExcludedClasses()
getExcludedClasses in interface ConfigContextpublic BaseChainedConfigContext setExcludedClasses(Set<String> excludedClasses)
public String getApplicationPackage()
getApplicationPackage in interface ConfigContextpublic BaseChainedConfigContext setApplicationPackage(String applicationPackage)
public String getHoneybadgerReadApiKey()
getHoneybadgerReadApiKey in interface ConfigContextpublic BaseChainedConfigContext setHoneybadgerReadApiKey(String honeybadgerReadApiKey)
public Boolean isFeedbackFormDisplayed()
isFeedbackFormDisplayed in interface ConfigContextpublic String getFeedbackFormPath()
getFeedbackFormPath in interface ConfigContextpublic BaseChainedConfigContext setFeedbackFormPath(String feedbackFormPath)
public String getHttpProxyHost()
getHttpProxyHost in interface ConfigContextpublic BaseChainedConfigContext setHttpProxyHost(String httpProxyHost)
public Integer getHttpProxyPort()
getHttpProxyPort in interface ConfigContextpublic BaseChainedConfigContext setHttpProxyPort(Integer httpProxyPort)
public Integer getMaximumErrorReportingRetries()
getMaximumErrorReportingRetries in interface ConfigContextpublic BaseChainedConfigContext getMaximumErrorReportingRetries(Integer maximumRetries)
public Integer getSocketTimeout()
getSocketTimeout in interface ConfigContextpublic BaseChainedConfigContext setSocketTimeout(Integer socketTimeout)
public Integer getConnectTimeout()
getConnectTimeout in interface ConfigContextpublic BaseChainedConfigContext setConnectTimeout(Integer connectTimeout)
public void overwriteWithContext(ConfigContext context)
context - context to overwrite configuration withprotected Boolean getFeedbackFormDisplayed()
Copyright © 2023 Honeybadger.io. All rights reserved.