public class SpincastConfigTestingDefault extends SpincastConfigDefault
ConfigFinder.ConfigFinderBuilderENVIRONMENT_NAME_DEFAULTconfigs, logger, rawConfigs| Modifier | Constructor and Description |
|---|---|
protected |
SpincastConfigTestingDefault(SpincastConfigPluginConfig spincastConfigPluginConfig)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
DictionaryEntryNotFoundBehavior |
getDictionaryEntryNotFoundBehavior()
If a dictionary key is not found, how must Spincast react?
|
int |
getHttpServerPort()
We use a free port.
|
String |
getPublicUrlBase()
You should override this config!!!!
|
String |
getServerHost()
The host/IP on which the server will listen to.
|
boolean |
isDebugEnabled()
We do not run in "debug" mode.
|
boolean |
isEnableCookiesValidator()
If
true, Spincast will always try to set a cookie
to validate if cookies are enabled on the client. |
boolean |
isValidateLocalhostHost()
By default, if
SpincastConfig.getPublicServerHost() returns
"localhost", SpincastConfig.getEnvironmentName() is
not "local" and SpincastConfig.isDebugEnabled() is false,
an exception is thrown when the application starts. |
getContentTypesToSkipGziping, getCookieNameFlashMessage, getCookieNameLocale, getCookieNameTimeZoneId, getCookiesValidatorCookieName, getDefaultLocale, getDefaultRouteCacheFilterSecondsNbr, getDefaultRouteCacheFilterSecondsNbrCdns, getDefaultStaticResourceCacheConfig, getDefaultTemplateVariablesFilterPosition, getDefaultTimeZone, getEnvironmentName, getHostForDefaultPublicServerSchemeHostPort, getHttpsKeyStoreKeyPass, getHttpsKeyStorePath, getHttpsKeyStoreStorePass, getHttpsKeyStoreType, getHttpsServerPort, getJsonPathArrayIndexMax, getKeyMaxLengthWhenConvertingMapToJsonObject, getMaxNumberOfKeysWhenConvertingMapToJsonObject, getPublicServerHost, getPublicServerPort, getPublicServerScheme, getPublicURI, getQueryParamFlashMessageId, getRouteForwardingMaxNumber, getServerMaxRequestBodyBytes, getSpincastModelRootVariableName, getSpincastWritableDirPath, getTempDir, getValidationElementDefaultName, getWritableRootDir, init, isAddDefaultTemplateVariablesFilter, isDefaultRouteCacheFilterPrivate, isRoutesCaseSensitive, isWriteToDiskDynamicStaticResourceclearPrefixes, configure, expandMap, getAppJarDirectory, getAppRootDirectoryNoJar, getBigDecimal, getBigDecimal, getBigDecimalFromElement, getBigDecimalList, getBigDecimalList, getBoolean, getBoolean, getBooleanFromElement, getBooleanList, getBooleanList, getClasspathFilePath, getConfig, getConfig, getConfigFromMap, getConfigFromMap, getConfigList, getConfigList, getConfigs, getDate, getDate, getDateFromElement, getDateList, getDateList, getEnvironmentVariables, getEnvironmentVariablesConfigs, getEnvironmentVariablesPrefixes, getExternalFilePath, getInteger, getInteger, getIntegerFromElement, getIntegerList, getIntegerList, getLong, getLong, getLongFromElement, getLongList, getLongList, getMap, getMap, getMapList, getMapList, getRawConfig, getRawConfigs, getString, getString, getStringList, getStringList, getSystemPropertiesConfigs, getSystemPropertiesPrefixes, isEnvironmentVariablesStripPrefix, isExternalFileConfigsOverrideEnvironmentVariables, isSystemPropertiesStripPrefix, isThrowExceptionIfSpecifiedClasspathConfigFileIsNotFound, isThrowExceptionIfSpecifiedExternalConfigFileIsNotFound, loadYamlFileConfigs, mergeMaps@Inject protected SpincastConfigTestingDefault(SpincastConfigPluginConfig spincastConfigPluginConfig)
public boolean isDebugEnabled()
isDebugEnabled in interface SpincastConfigisDebugEnabled in class SpincastConfigDefaulttrue if debug mode is enabled.public String getServerHost()
SpincastConfig0.0.0.0.getServerHost in interface SpincastConfiggetServerHost in class SpincastConfigDefaultpublic int getHttpServerPort()
getHttpServerPort in interface SpincastConfiggetHttpServerPort in class SpincastConfigDefaultpublic String getPublicUrlBase()
SpincastConfigDefaultgetPublicUrlBase in interface SpincastConfiggetPublicUrlBase in class SpincastConfigDefaultpublic boolean isValidateLocalhostHost()
SpincastConfigSpincastConfig.getPublicServerHost() returns
"localhost", SpincastConfig.getEnvironmentName() is
not "local" and SpincastConfig.isDebugEnabled() is false,
an exception is thrown when the application starts.
This validation is to make sure the developers
didn't forget to override the SpincastConfig.getPublicUrlBase()
method when they release to a non local environment.
You can disable this validation if you want.
isValidateLocalhostHost in interface SpincastConfigisValidateLocalhostHost in class SpincastConfigDefaultpublic boolean isEnableCookiesValidator()
SpincastConfigtrue, Spincast will always try to set a cookie
to validate if cookies are enabled on the client.
This is enabled by default
isEnableCookiesValidator in interface SpincastConfigisEnableCookiesValidator in class SpincastConfigDefaultpublic DictionaryEntryNotFoundBehavior getDictionaryEntryNotFoundBehavior()
SpincastConfigNote that if the key is not found for the current Locale, Spincast will first check if it exists for the fallback Locale (the empty Locale).
By default, in debug mode an exception is thrown. Otherwise, an empty string is returned but an error is logged.
getDictionaryEntryNotFoundBehavior in interface SpincastConfiggetDictionaryEntryNotFoundBehavior in class SpincastConfigDefaultCopyright © 2018. All rights reserved.