public class SpincastConfigTestingDefault extends SpincastConfigDefault implements SpincastConfigTesting
SpincastTestBase will add an AOP interceptor that is going
to redirect calls made to the original SpincastConfig object
to this testing version.
ENVIRONMENT_NAME_DEFAULT| Constructor and Description |
|---|
SpincastConfigTestingDefault() |
| Modifier and Type | Method and Description |
|---|---|
int |
getHttpServerPort()
We use a free port.
|
String |
getPublicServerSchemeHostPort()
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 |
isRoutesCaseSensitive()
Are the URLS case-sensitive or not, during the route matching
process?
The default value is
false. |
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. |
cleanWritableSpincastDir, getContentTypesToSkipGziping, getCookieNameFlashMessage, getCookieNameLocale, getCookiesValidatorCookieName, getDefaultLocale, getDefaultRouteCacheFilterSecondsNbr, getDefaultRouteCacheFilterSecondsNbrCdns, getDefaultStaticResourceCacheConfig, getDefaultTemplateVariablesFilterPosition, getEnvironmentName, getHostForDefaultPublicServerSchemeHostPort, getHttpsKeyStoreKeypass, getHttpsKeyStorePath, getHttpsKeyStoreStorePass, getHttpsKeyStoreType, getHttpsServerPort, getJsonPathArrayIndexMax, getKeyMaxLengthWhenConvertingMapToJsonObject, getMaxNumberOfKeysWhenConvertingMapToJsonObject, getPublicServerHost, getPublicServerPort, getPublicServerScheme, getPubliURI, getQueryParamFlashMessageId, getRouteForwardingMaxNumber, getServerMaxRequestBodyBytes, getSpincastModelRootVariableName, getSpincastTempDirName, getSpincastWritableDir, isAddDefaultTemplateVariablesFilter, isDefaultRouteCacheFilterPrivate, isDisableWriteToDiskDynamicStaticResourceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetContentTypesToSkipGziping, getCookieNameFlashMessage, getCookieNameLocale, getCookiesValidatorCookieName, getDefaultLocale, getDefaultRouteCacheFilterSecondsNbr, getDefaultRouteCacheFilterSecondsNbrCdns, getDefaultStaticResourceCacheConfig, getDefaultTemplateVariablesFilterPosition, getEnvironmentName, getHttpsKeyStoreKeypass, getHttpsKeyStorePath, getHttpsKeyStoreStorePass, getHttpsKeyStoreType, getHttpsServerPort, getJsonPathArrayIndexMax, getKeyMaxLengthWhenConvertingMapToJsonObject, getMaxNumberOfKeysWhenConvertingMapToJsonObject, getPublicServerHost, getPublicServerPort, getPublicServerScheme, getQueryParamFlashMessageId, getRouteForwardingMaxNumber, getServerMaxRequestBodyBytes, getSpincastModelRootVariableName, getSpincastWritableDir, isAddDefaultTemplateVariablesFilter, isDefaultRouteCacheFilterPrivate, isDisableWriteToDiskDynamicStaticResourcepublic boolean isDebugEnabled()
isDebugEnabled in interface SpincastConfigisDebugEnabled in class SpincastConfigDefaulttrue if debug mode is enabled.public boolean isRoutesCaseSensitive()
SpincastConfigfalse.isRoutesCaseSensitive in interface SpincastConfigisRoutesCaseSensitive in class SpincastConfigDefaultpublic String getServerHost()
SpincastConfig0.0.0.0.getServerHost in interface SpincastConfiggetServerHost in class SpincastConfigDefaultpublic int getHttpServerPort()
getHttpServerPort in interface SpincastConfiggetHttpServerPort in class SpincastConfigDefaultpublic String getPublicServerSchemeHostPort()
SpincastConfigDefaultgetPublicServerSchemeHostPort in interface SpincastConfiggetPublicServerSchemeHostPort 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.getPublicServerSchemeHostPort()
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 SpincastConfigDefaultCopyright © 2017. All rights reserved.