public class AppConfig
extends com.appslandia.common.base.InitializeObject
implements com.appslandia.common.base.Config
| Modifier and Type | Field and Description |
|---|---|
protected com.appslandia.common.base.ConfigMap |
config |
static String |
CONFIG_CONTENT_LANG |
static String |
CONFIG_ENABLE_ASYNC |
static String |
CONFIG_ENABLE_AUTHORIZE |
static String |
CONFIG_ENABLE_CORS |
static String |
CONFIG_ENABLE_DEBUG |
static String |
CONFIG_ENABLE_GZIP |
static String |
CONFIG_ENABLE_HTTPS |
static String |
CONFIG_ENABLE_JSON_ERROR |
static String |
CONFIG_ENABLE_SESSION |
static String |
CONFIG_HEADER_POLICIES |
static String |
CONFIG_HTTP_PORT |
static String |
CONFIG_HTTPS_PORT |
static String |
CONFIG_HTTPS_REDIRECT_PERMANENTLY |
static String |
CONFIG_MODULE_NAME |
static String |
CONFIG_PATH_LANG |
static String |
CONFIG_PREF_LANG |
static String |
CONFIG_REAUTH_TIMEOUT_MS |
static String |
CONFIG_REMME_COOKIE_AGE |
static String |
CONFIG_REMME_COOKIE_HTTPONLY |
static String |
CONFIG_REMME_COOKIE_NAME |
static String |
CONFIG_REMME_COOKIE_SECURE |
static String |
CONFIG_REMME_COOKIE_SLIDING |
static String |
CONFIG_RESOURCE_NAMES |
static String |
CONFIG_VIEW_PATH |
| Constructor and Description |
|---|
AppConfig() |
AppConfig(com.appslandia.common.base.ConfigMap config) |
assertNotInitialized, destroy, initializepublic static final String CONFIG_MODULE_NAME
public static final String CONFIG_HTTP_PORT
public static final String CONFIG_HTTPS_PORT
public static final String CONFIG_HTTPS_REDIRECT_PERMANENTLY
public static final String CONFIG_ENABLE_SESSION
public static final String CONFIG_ENABLE_DEBUG
public static final String CONFIG_RESOURCE_NAMES
public static final String CONFIG_HEADER_POLICIES
public static final String CONFIG_ENABLE_GZIP
public static final String CONFIG_ENABLE_CORS
public static final String CONFIG_CONTENT_LANG
public static final String CONFIG_ENABLE_HTTPS
public static final String CONFIG_ENABLE_ASYNC
public static final String CONFIG_ENABLE_AUTHORIZE
public static final String CONFIG_ENABLE_JSON_ERROR
public static final String CONFIG_REMME_COOKIE_NAME
public static final String CONFIG_REMME_COOKIE_AGE
public static final String CONFIG_REMME_COOKIE_SECURE
public static final String CONFIG_REMME_COOKIE_HTTPONLY
public static final String CONFIG_REMME_COOKIE_SLIDING
public static final String CONFIG_PATH_LANG
public static final String CONFIG_PREF_LANG
public static final String CONFIG_VIEW_PATH
public static final String CONFIG_REAUTH_TIMEOUT_MS
protected com.appslandia.common.base.ConfigMap config
public AppConfig()
public AppConfig(com.appslandia.common.base.ConfigMap config)
protected void init()
throws Exception
init in class com.appslandia.common.base.InitializeObjectExceptionpublic String getModule()
public int getHttpPort()
public int getHttpsPort()
public boolean isEnableHttps()
public boolean isEnableSession()
public boolean isEnableDebug()
public boolean isEnableJsonError()
public boolean isPathLang()
public boolean isPrefLang()
public String getViewPath()
public long getReauthTimeoutMs()
public StringBuilder getViewPathBase()
public String getString(String key)
getString in interface com.appslandia.common.base.Configpublic String getString(String key, String defaultValue)
getString in interface com.appslandia.common.base.Configpublic String getRequiredString(String key) throws IllegalStateException
getRequiredString in interface com.appslandia.common.base.ConfigIllegalStateExceptionpublic String[] getStringArray(String key)
getStringArray in interface com.appslandia.common.base.Configpublic String getFormatted(String key)
getFormatted in interface com.appslandia.common.base.Configpublic String getRequiredFormatted(String key) throws IllegalStateException
getRequiredFormatted in interface com.appslandia.common.base.ConfigIllegalStateExceptionpublic String getFormatted(String key, Map<String,Object> parameters)
getFormatted in interface com.appslandia.common.base.Configpublic String getRequiredFormatted(String key, Map<String,Object> parameters) throws IllegalStateException
getRequiredFormatted in interface com.appslandia.common.base.ConfigIllegalStateExceptionpublic String getFormatted(String key, Object... parameters)
getFormatted in interface com.appslandia.common.base.Configpublic String getRequiredFormatted(String key, Object... parameters) throws IllegalStateException
getRequiredFormatted in interface com.appslandia.common.base.ConfigIllegalStateExceptionpublic boolean getBool(String key, boolean defaultValue)
getBool in interface com.appslandia.common.base.Configpublic boolean getRequiredBool(String key) throws IllegalStateException, com.appslandia.common.base.BoolFormatException
getRequiredBool in interface com.appslandia.common.base.ConfigIllegalStateExceptioncom.appslandia.common.base.BoolFormatExceptionpublic int getInt(String key, int defaultValue)
getInt in interface com.appslandia.common.base.Configpublic int getRequiredInt(String key) throws IllegalStateException, NumberFormatException
getRequiredInt in interface com.appslandia.common.base.ConfigIllegalStateExceptionNumberFormatExceptionpublic long getLong(String key, long defaultValue)
getLong in interface com.appslandia.common.base.Configpublic long getRequiredLong(String key) throws IllegalStateException, NumberFormatException
getRequiredLong in interface com.appslandia.common.base.ConfigIllegalStateExceptionNumberFormatExceptionpublic double getDouble(String key, double defaultValue)
getDouble in interface com.appslandia.common.base.Configpublic double getRequiredDouble(String key) throws IllegalStateException, NumberFormatException
getRequiredDouble in interface com.appslandia.common.base.ConfigIllegalStateExceptionNumberFormatExceptionCopyright © 2021. All rights reserved.