public class SpincastConfigTestingDefault extends SpincastConfigDefault
ConfigFinder.ConfigFinderBuilderENVIRONMENT_NAME_DEFAULTconfigs, logger, rawConfigs| Modifier | Constructor and Description |
|---|---|
protected |
SpincastConfigTestingDefault(SpincastConfigPluginConfig spincastConfigPluginConfig,
boolean testingMode)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
DictionaryEntryNotFoundBehavior |
getDictionaryEntryNotFoundBehavior()
If a dictionary key is not found, how must Spincast react?
|
int |
getHttpServerPort()
The HTTP (unsecure) port on which the server will listen on.
|
String |
getHttpsKeyStoreKeyPass()
The "keypass" of the
KeyStore, for SSL. |
String |
getHttpsKeyStorePath()
The path to the
KeyStore, for SSL. |
String |
getHttpsKeyStoreStorePass()
The "storepass" of the
KeyStore, for SSL. |
String |
getHttpsKeyStoreType()
The type of the
KeyStore, for SSL. |
int |
getHttpsServerPort()
The HTTPS (secure) port on which the server will listen on.
|
String |
getPublicUrlBase()
You should override this config!!!!
|
String |
getServerHost()
The host/IP on which the server will listen to.
|
boolean |
isDevelopmentMode()
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.isDevelopmentMode() is false,
an exception is thrown when the application starts. |
getContentTypesToSkipGziping, getCookieNameFlashMessage, getCookieNameLocale, getCookieNameTimeZoneId, getCookiesValidatorCookieName, getDefaultLocale, getDefaultRouteCacheFilterSecondsNbr, getDefaultRouteCacheFilterSecondsNbrCdns, getDefaultStaticResourceCacheConfig, getDefaultTemplateVariablesFilterPosition, getDefaultTimeZone, getEnvironmentName, getHostForDefaultPublicServerSchemeHostPort, getJsonPathArrayIndexMax, getKeyMaxLengthWhenConvertingMapToJsonObject, getMaxNumberOfKeysWhenConvertingMapToJsonObject, getPublicServerHost, getPublicServerPort, getPublicServerScheme, getPublicURI, getQueryParamFlashMessageId, getRouteForwardingMaxNumber, getServerMaxRequestBodyBytes, getSpincastModelRootVariableName, getSpincastWritableDirPath, getTempDir, getValidationElementDefaultName, getWritableRootDir, init, isAddDefaultTemplateVariablesFilter, isDefaultRouteCacheFilterPrivate, isEnableHttp2, isRoutesCaseSensitive, isTestingMode, 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, boolean testingMode)
public boolean isDevelopmentMode()
isDevelopmentMode in interface SpincastConfigisDevelopmentMode in class SpincastConfigDefaulttrue if debug mode is enabled.public String getServerHost()
SpincastConfig0.0.0.0.getServerHost in interface SpincastConfiggetServerHost in class SpincastConfigDefaultpublic int getHttpServerPort()
SpincastConfig44419 so HTTP
is enabled by default.getHttpServerPort in interface SpincastConfiggetHttpServerPort in class SpincastConfigDefaultpublic int getHttpsServerPort()
SpincastConfig-1 so HTTPS
is not enabled by default.getHttpsServerPort in interface SpincastConfiggetHttpsServerPort in class SpincastConfigDefaultpublic String getPublicUrlBase()
SpincastConfigDefaultgetPublicUrlBase in interface SpincastConfiggetPublicUrlBase in class SpincastConfigDefaultpublic String getHttpsKeyStorePath()
SpincastConfigKeyStore, for SSL. Can be a
classpath path or and absolute path.
The classpath will be checked first.
Only used if getHttpsServerPort() returns a port > 0.
The default value is null.getHttpsKeyStorePath in interface SpincastConfiggetHttpsKeyStorePath in class SpincastConfigDefaultKeyStorepublic String getHttpsKeyStoreType()
SpincastConfigKeyStore, for SSL.
For example: "JKS".
Only used if getHttpsServerPort() returns a port > 0.
The default value is null.getHttpsKeyStoreType in interface SpincastConfiggetHttpsKeyStoreType in class SpincastConfigDefaultKeyStorepublic String getHttpsKeyStoreStorePass()
SpincastConfigKeyStore, for SSL.
Only used if getHttpsServerPort() returns a port > 0.
The default value is null.getHttpsKeyStoreStorePass in interface SpincastConfiggetHttpsKeyStoreStorePass in class SpincastConfigDefaultKeyStorepublic String getHttpsKeyStoreKeyPass()
SpincastConfigKeyStore, for SSL.
Only used if getHttpsServerPort() returns a port > 0.
The default value is null.getHttpsKeyStoreKeyPass in interface SpincastConfiggetHttpsKeyStoreKeyPass in class SpincastConfigDefaultKeyStorepublic boolean isValidateLocalhostHost()
SpincastConfigSpincastConfig.getPublicServerHost() returns
"localhost", SpincastConfig.getEnvironmentName() is
not "local" and SpincastConfig.isDevelopmentMode() 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 © 2019. All rights reserved.