public class AppConfig extends SpincastConfigPropsFileBased implements IAppConfig
| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
logger |
APP_PROPERTIES_KEY_ENVIRONMENT_IS_DEBUG, APP_PROPERTIES_KEY_ENVIRONMENT_NAME, APP_PROPERTIES_KEY_HTTP_SERVER_PORT, APP_PROPERTIES_KEY_HTTPS_SERVER_KEYSTORE_KEYPASS, APP_PROPERTIES_KEY_HTTPS_SERVER_KEYSTORE_PATH, APP_PROPERTIES_KEY_HTTPS_SERVER_KEYSTORE_STOREPASS, APP_PROPERTIES_KEY_HTTPS_SERVER_KEYSTORE_TYPE, APP_PROPERTIES_KEY_HTTPS_SERVER_PORT, APP_PROPERTIES_KEY_SERVER_HOST| Constructor and Description |
|---|
AppConfig(org.spincast.core.utils.ISpincastUtils spincastUtils,
String[] mainArgs,
ISpincastConfigPropsFileBasedConfig pluginConfig) |
| Modifier and Type | Method and Description |
|---|---|
int |
getHttpServerPort()
We use "44420" as the default port for the website, if
this port is not overriden in the .properties file.
|
int |
getNbrNewsEntriesPerPage()
The number of news entries per page.
|
String |
getServerSchemeHostPort()
The application can't know for sure by itself on which
scheme/host/port it is served (for example : "https://www.example.com:8080").
|
getAppProperties, getConfig, getConfig, getConfig, getConfigBoolean, getConfigBoolean, getConfigInteger, getConfigInteger, getConfigKeyEnvironmentIsDebug, getConfigKeyEnvironmentName, getConfigKeyHttpServerPort, getConfigKeyHttpsServerKeystoreKeyPass, getConfigKeyHttpsServerKeystorePath, getConfigKeyHttpsServerKeystoreStorePass, getConfigKeyHttpsServerKeystoreType, getConfigKeyHttpsServerPort, getConfigKeyServerHost, getEnvironmentName, getFoundPropertiesFilePath, getHttpsKeyStoreKeypass, getHttpsKeyStorePath, getHttpsKeyStoreStorePass, getHttpsKeyStoreType, getHttpsServerPort, getMainArgs, getPluginConfig, getServerHost, getSpecificAppPropertiesFilePath, getSpincastUtils, isDebugEnabled, lookForPropsFileSpecificPathgetContentTypesToSkipGziping, getDefaultLocale, getRouteForwardingMaxNumber, getServerMaxRequestBodyBytes, getSpincastWritableDir, isRoutesCaseSensitiveclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetContentTypesToSkipGziping, getDefaultLocale, getEnvironmentName, getHttpsKeyStoreKeypass, getHttpsKeyStorePath, getHttpsKeyStoreStorePass, getHttpsKeyStoreType, getHttpsServerPort, getRouteForwardingMaxNumber, getServerHost, getServerMaxRequestBodyBytes, getSpincastWritableDir, isDebugEnabled, isRoutesCaseSensitive@Inject
public AppConfig(org.spincast.core.utils.ISpincastUtils spincastUtils,
@Nullable
String[] mainArgs,
@Nullable
ISpincastConfigPropsFileBasedConfig pluginConfig)
public int getHttpServerPort()
getHttpServerPort in interface org.spincast.core.config.ISpincastConfiggetHttpServerPort in class SpincastConfigPropsFileBasedpublic String getServerSchemeHostPort()
IAppConfiggetServerSchemeHostPort in interface IAppConfigpublic int getNbrNewsEntriesPerPage()
IAppConfiggetNbrNewsEntriesPerPage in interface IAppConfigCopyright © 2016. All rights reserved.