public class AppConfig extends org.spincast.plugins.config.SpincastConfig implements IAppConfig
| Modifier and Type | Field and Description |
|---|---|
static String |
APP_PROPERTIES_FILE_NAME |
static String |
APP_PROPERTIES_KEY_ENVIRONMENT_IS_DEBUG |
static String |
APP_PROPERTIES_KEY_ENVIRONMENT_NAME |
static String |
APP_PROPERTIES_KEY_HTTP_SERVER_PORT |
static String |
APP_PROPERTIES_KEY_HTTPS_SERVER_KEYSTORE_KEYPASS |
static String |
APP_PROPERTIES_KEY_HTTPS_SERVER_KEYSTORE_PATH |
static String |
APP_PROPERTIES_KEY_HTTPS_SERVER_KEYSTORE_STOREPASS |
static String |
APP_PROPERTIES_KEY_HTTPS_SERVER_KEYSTORE_TYPE |
static String |
APP_PROPERTIES_KEY_HTTPS_SERVER_PORT |
static String |
APP_PROPERTIES_KEY_SERVER_HOST |
protected org.slf4j.Logger |
logger |
| Constructor and Description |
|---|
AppConfig(org.spincast.core.utils.ISpincastUtils spincastUtils,
String[] mainArgs)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected Properties |
getAppProperties()
Here's the algorothme used to find the environment configurations :
1) If a parameter has been passed to the main method of the application,
it is considered as to be the path to the configuration file to use.
|
String |
getEnvironmentName() |
int |
getHttpServerPort() |
String |
getHttpsKeyStoreKeypass() |
String |
getHttpsKeyStorePath() |
String |
getHttpsKeyStoreStorePass() |
String |
getHttpsKeyStoreType() |
int |
getHttpsServerPort() |
String |
getServerHost() |
protected org.spincast.core.utils.ISpincastUtils |
getSpincastUtils() |
boolean |
isDebugEnabled() |
getContentTypesToSkipGziping, getDefaultLocale, getRouteForwardingMaxNumber, getServerMaxRequestBodyBytes, getSpincastWritableDir, isRoutesCaseSensitiveprotected final org.slf4j.Logger logger
public static final String APP_PROPERTIES_FILE_NAME
public static final String APP_PROPERTIES_KEY_ENVIRONMENT_NAME
public static final String APP_PROPERTIES_KEY_ENVIRONMENT_IS_DEBUG
public static final String APP_PROPERTIES_KEY_SERVER_HOST
public static final String APP_PROPERTIES_KEY_HTTP_SERVER_PORT
public static final String APP_PROPERTIES_KEY_HTTPS_SERVER_PORT
public static final String APP_PROPERTIES_KEY_HTTPS_SERVER_KEYSTORE_PATH
public static final String APP_PROPERTIES_KEY_HTTPS_SERVER_KEYSTORE_TYPE
public static final String APP_PROPERTIES_KEY_HTTPS_SERVER_KEYSTORE_STOREPASS
public static final String APP_PROPERTIES_KEY_HTTPS_SERVER_KEYSTORE_KEYPASS
protected org.spincast.core.utils.ISpincastUtils getSpincastUtils()
protected Properties getAppProperties()
public String getEnvironmentName()
getEnvironmentName in interface org.spincast.core.config.ISpincastConfiggetEnvironmentName in class org.spincast.plugins.config.SpincastConfigpublic boolean isDebugEnabled()
isDebugEnabled in interface org.spincast.core.config.ISpincastConfigisDebugEnabled in class org.spincast.plugins.config.SpincastConfigpublic String getServerHost()
getServerHost in interface org.spincast.core.config.ISpincastConfiggetServerHost in class org.spincast.plugins.config.SpincastConfigpublic int getHttpServerPort()
getHttpServerPort in interface org.spincast.core.config.ISpincastConfiggetHttpServerPort in class org.spincast.plugins.config.SpincastConfigpublic int getHttpsServerPort()
getHttpsServerPort in interface org.spincast.core.config.ISpincastConfiggetHttpsServerPort in class org.spincast.plugins.config.SpincastConfigpublic String getHttpsKeyStorePath()
getHttpsKeyStorePath in interface org.spincast.core.config.ISpincastConfiggetHttpsKeyStorePath in class org.spincast.plugins.config.SpincastConfigpublic String getHttpsKeyStoreType()
getHttpsKeyStoreType in interface org.spincast.core.config.ISpincastConfiggetHttpsKeyStoreType in class org.spincast.plugins.config.SpincastConfigpublic String getHttpsKeyStoreStorePass()
getHttpsKeyStoreStorePass in interface org.spincast.core.config.ISpincastConfiggetHttpsKeyStoreStorePass in class org.spincast.plugins.config.SpincastConfigpublic String getHttpsKeyStoreKeypass()
getHttpsKeyStoreKeypass in interface org.spincast.core.config.ISpincastConfiggetHttpsKeyStoreKeypass in class org.spincast.plugins.config.SpincastConfigCopyright © 2016. All rights reserved.