Class AppConfigDefault

java.lang.Object
org.spincast.plugins.config.ConfigFinder
org.spincast.plugins.config.SpincastConfigDefault
org.spincast.website.AppConfigDefault
All Implemented Interfaces:
org.spincast.core.config.SpincastConfig, AppConfig

public class AppConfigDefault extends org.spincast.plugins.config.SpincastConfigDefault implements AppConfig
Application configurations
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.spincast.plugins.config.ConfigFinder

    org.spincast.plugins.config.ConfigFinder.ConfigFinderBuilder
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected static final org.slf4j.Logger
     

    Fields inherited from class org.spincast.plugins.config.SpincastConfigDefault

    ENVIRONMENT_NAME_DEFAULT

    Fields inherited from class org.spincast.plugins.config.ConfigFinder

    configs, rawConfigs
  • Constructor Summary

    Constructors
    Constructor
    Description
    AppConfigDefault(org.spincast.plugins.config.SpincastConfigPluginConfig spincastConfigPluginConfig, boolean testingMode)
    Constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    List<org.spincast.shaded.org.apache.commons.lang3.tuple.Pair<String,String>>
    A list of username/password that allow administrative privileges.
     
    int
     
     
     
     
     
    int
     
    int
    The number of news entries on a regular "News" listing page.
    int
    The number of news entries for a feed request.
     
     
    protected String
     
    boolean
     

    Methods inherited from class org.spincast.plugins.config.SpincastConfigDefault

    getContentTypesToSkipGziping, getCookieNameFlashMessage, getCookieNameLocale, getCookieNameTimeZoneId, getCookiesValidatorCookieName, getDefaultLocale, getDefaultRouteCacheFilterSecondsNbr, getDefaultRouteCacheFilterSecondsNbrCdns, getDefaultStaticResourceCacheConfig, getDefaultTemplateVariablesFilterPosition, getDefaultTimeZone, getDictionaryEntryNotFoundBehavior, getHostForDefaultPublicServerSchemeHostPort, getJsonPathArrayIndexMax, getKeyMaxLengthWhenConvertingMapToJsonObject, getMaxNumberOfKeysWhenConvertingMapToJsonObject, getPublicServerHost, getPublicServerPort, getPublicServerScheme, getPublicURI, getRouteForwardingMaxNumber, getServerHost, getServerMaxRequestBodyBytes, getSpincastModelRootVariableName, getTempDir, getValidationElementDefaultName, getWritableRootDir, init, isAddDefaultTemplateVariablesFilter, isDefaultRouteCacheFilterPrivate, isEnableCookiesValidator, isEnableHttp2, isRoutesCaseSensitive, isTestingMode, isValidateLocalhostHost, isWriteToDiskDynamicStaticResource

    Methods inherited from class org.spincast.plugins.config.ConfigFinder

    clearPrefixes, 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.spincast.core.config.SpincastConfig

    getContentTypesToSkipGziping, getCookieNameFlashMessage, getCookieNameLocale, getCookieNameTimeZoneId, getCookiesValidatorCookieName, getDefaultLocale, getDefaultRouteCacheFilterSecondsNbr, getDefaultRouteCacheFilterSecondsNbrCdns, getDefaultStaticResourceCacheConfig, getDefaultTemplateVariablesFilterPosition, getDefaultTimeZone, getDictionaryEntryNotFoundBehavior, getJsonPathArrayIndexMax, getKeyMaxLengthWhenConvertingMapToJsonObject, getMaxNumberOfKeysWhenConvertingMapToJsonObject, getPublicServerHost, getPublicServerPort, getPublicServerScheme, getRouteForwardingMaxNumber, getServerHost, getServerMaxRequestBodyBytes, getSpincastModelRootVariableName, getTempDir, getValidationElementDefaultName, getWritableRootDir, isAddDefaultTemplateVariablesFilter, isDefaultRouteCacheFilterPrivate, isEnableCookiesValidator, isEnableHttp2, isRoutesCaseSensitive, isTestingMode, isValidateLocalhostHost, isWriteToDiskDynamicStaticResource
  • Field Details

    • logger

      protected static final org.slf4j.Logger logger
  • Constructor Details

    • AppConfigDefault

      @Inject public AppConfigDefault(org.spincast.plugins.config.SpincastConfigPluginConfig spincastConfigPluginConfig, boolean testingMode)
      Constructor
  • Method Details

    • getPublicUrlBase

      public String getPublicUrlBase()
      Specified by:
      getPublicUrlBase in interface org.spincast.core.config.SpincastConfig
      Overrides:
      getPublicUrlBase in class org.spincast.plugins.config.SpincastConfigDefault
    • getHttpServerPort

      public int getHttpServerPort()
      Specified by:
      getHttpServerPort in interface org.spincast.core.config.SpincastConfig
      Overrides:
      getHttpServerPort in class org.spincast.plugins.config.SpincastConfigDefault
    • getHttpsServerPort

      public int getHttpsServerPort()
      Specified by:
      getHttpsServerPort in interface org.spincast.core.config.SpincastConfig
      Overrides:
      getHttpsServerPort in class org.spincast.plugins.config.SpincastConfigDefault
    • getHttpsKeyStorePath

      public String getHttpsKeyStorePath()
      Specified by:
      getHttpsKeyStorePath in interface org.spincast.core.config.SpincastConfig
      Overrides:
      getHttpsKeyStorePath in class org.spincast.plugins.config.SpincastConfigDefault
    • getHttpsKeyStoreType

      public String getHttpsKeyStoreType()
      Specified by:
      getHttpsKeyStoreType in interface org.spincast.core.config.SpincastConfig
      Overrides:
      getHttpsKeyStoreType in class org.spincast.plugins.config.SpincastConfigDefault
    • getHttpsKeyStoreStorePass

      public String getHttpsKeyStoreStorePass()
      Specified by:
      getHttpsKeyStoreStorePass in interface org.spincast.core.config.SpincastConfig
      Overrides:
      getHttpsKeyStoreStorePass in class org.spincast.plugins.config.SpincastConfigDefault
    • getHttpsKeyStoreKeyPass

      public String getHttpsKeyStoreKeyPass()
      Specified by:
      getHttpsKeyStoreKeyPass in interface org.spincast.core.config.SpincastConfig
      Overrides:
      getHttpsKeyStoreKeyPass in class org.spincast.plugins.config.SpincastConfigDefault
    • getEnvironmentName

      public String getEnvironmentName()
      Specified by:
      getEnvironmentName in interface org.spincast.core.config.SpincastConfig
      Overrides:
      getEnvironmentName in class org.spincast.plugins.config.SpincastConfigDefault
    • isDevelopmentMode

      public boolean isDevelopmentMode()
      Specified by:
      isDevelopmentMode in interface org.spincast.core.config.SpincastConfig
      Overrides:
      isDevelopmentMode in class org.spincast.plugins.config.SpincastConfigDefault
    • getSpincastWritableDirPath

      protected String getSpincastWritableDirPath()
      Overrides:
      getSpincastWritableDirPath in class org.spincast.plugins.config.SpincastConfigDefault
    • getNbrNewsEntriesOnNewsPage

      public int getNbrNewsEntriesOnNewsPage()
      Description copied from interface: AppConfig
      The number of news entries on a regular "News" listing page.
      Specified by:
      getNbrNewsEntriesOnNewsPage in interface AppConfig
    • getNbrNewsEntriesPerFeedRequest

      public int getNbrNewsEntriesPerFeedRequest()
      Description copied from interface: AppConfig
      The number of news entries for a feed request.
      Specified by:
      getNbrNewsEntriesPerFeedRequest in interface AppConfig
    • getAdminUsernamesPasswords

      public List<org.spincast.shaded.org.apache.commons.lang3.tuple.Pair<String,String>> getAdminUsernamesPasswords()
      Description copied from interface: AppConfig
      A list of username/password that allow administrative privileges.
      Specified by:
      getAdminUsernamesPasswords in interface AppConfig
    • getQueryParamFlashMessageId

      public String getQueryParamFlashMessageId()
      Specified by:
      getQueryParamFlashMessageId in interface org.spincast.core.config.SpincastConfig
      Overrides:
      getQueryParamFlashMessageId in class org.spincast.plugins.config.SpincastConfigDefault