public enum WebConfigParam extends Enum<WebConfigParam> implements ConfigParam<javax.faces.context.ExternalContext>
Enum Constant and Description |
---|
I18nELMapInitialCacheCapacity
Integer indicating the initial cache capacity for the message cache used by the i18n EL utility.
|
I18nELMapMaxCacheCapacity
Integer indicating the default maximum cache capacity for the message cache used by the i18n EL utility.
|
I18nInitialCacheCapacity
Integer indicating the default maximum cache capacity for the resource bundle cache used by the i18n EL utility.
|
I18nMaxCacheCapacity
Integer indicating the maximum cache capacity for the resource bundle cache used by the
I18n utility. |
ResolveXMLEntities
Boolean indicating whether or not XML entities should be resolved
|
UploadedFileMaxSize
Maximum file size for an uploaded file.
|
UploadedFilesDir
Absolute path to a directory (folder) in which the uploaded file data should be written to.
|
Modifier and Type | Method and Description |
---|---|
String |
getAlternateName()
Returns the alternate name of the config param (or null if there is not an alternate name).
|
boolean |
getBooleanValue(javax.faces.context.ExternalContext externalContext)
Returns the boolean value of the config param.
|
String |
getConfiguredValue(javax.faces.context.ExternalContext externalContext)
Returns the value of the config param that was specified in the configuration file.
|
boolean |
getDefaultBooleanValue()
Returns the default boolean value of the config param.
|
int |
getDefaultIntegerValue()
Returns the default int value of the config param.
|
long |
getDefaultLongValue()
Returns the default long value of the config param.
|
String |
getDefaultStringValue()
Returns the default String value of the config param.
|
int |
getIntegerValue(javax.faces.context.ExternalContext externalContext)
Returns the int value of the config param.
|
long |
getLongValue(javax.faces.context.ExternalContext externalContext)
Returns the long value of the config param.
|
String |
getName()
Returns the name of the config param.
|
String |
getStringValue(javax.faces.context.ExternalContext externalContext)
Returns the String value of the config param.
|
boolean |
isConfigured(javax.faces.context.ExternalContext externalContext)
Flag indicating whether or not the config param was specified in the configuration file.
|
static WebConfigParam |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WebConfigParam[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WebConfigParam I18nELMapInitialCacheCapacity
CacheFactory.getConcurrentCache(int)
and HashMap.HashMap()
.public static final WebConfigParam I18nInitialCacheCapacity
CacheFactory.getConcurrentCache(int)
and HashMap.HashMap()
.public static final WebConfigParam I18nELMapMaxCacheCapacity
CacheFactory.getConcurrentCache(int)
).
Otherwise, an LRU cache with the specified maximum capacity will be obtained via CacheFactory.getConcurrentLRUCache(int, int)
.public static final WebConfigParam I18nMaxCacheCapacity
I18n
utility. The
default value of this param is -1 which indicates that no maximum capacity should be enforced (in other words,
the cache will be obtained via CacheFactory.getConcurrentCache(int)
).
Otherwise, an LRU cache with the specified maximum capacity will be obtained via CacheFactory.getConcurrentLRUCache(int, int)
.public static final WebConfigParam ResolveXMLEntities
public static final WebConfigParam UploadedFilesDir
public static final WebConfigParam UploadedFileMaxSize
public static WebConfigParam[] values()
for (WebConfigParam c : WebConfigParam.values()) System.out.println(c);
public static WebConfigParam valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getAlternateName()
ConfigParam
getAlternateName
in interface ConfigParam<javax.faces.context.ExternalContext>
public boolean getBooleanValue(javax.faces.context.ExternalContext externalContext)
ConfigParam
ConfigParam.getDefaultBooleanValue()
is returned.getBooleanValue
in interface ConfigParam<javax.faces.context.ExternalContext>
public String getConfiguredValue(javax.faces.context.ExternalContext externalContext)
ConfigParam
getConfiguredValue
in interface ConfigParam<javax.faces.context.ExternalContext>
public boolean getDefaultBooleanValue()
ConfigParam
getDefaultBooleanValue
in interface ConfigParam<javax.faces.context.ExternalContext>
public int getDefaultIntegerValue()
ConfigParam
getDefaultIntegerValue
in interface ConfigParam<javax.faces.context.ExternalContext>
public long getDefaultLongValue()
ConfigParam
getDefaultLongValue
in interface ConfigParam<javax.faces.context.ExternalContext>
public String getDefaultStringValue()
ConfigParam
getDefaultStringValue
in interface ConfigParam<javax.faces.context.ExternalContext>
public int getIntegerValue(javax.faces.context.ExternalContext externalContext)
ConfigParam
ConfigParam.getDefaultIntegerValue()
is returned.getIntegerValue
in interface ConfigParam<javax.faces.context.ExternalContext>
public long getLongValue(javax.faces.context.ExternalContext externalContext)
ConfigParam
ConfigParam.getDefaultLongValue()
is returned.getLongValue
in interface ConfigParam<javax.faces.context.ExternalContext>
public String getName()
ConfigParam
getName
in interface ConfigParam<javax.faces.context.ExternalContext>
public String getStringValue(javax.faces.context.ExternalContext externalContext)
ConfigParam
ConfigParam.getDefaultStringValue()
is returned.getStringValue
in interface ConfigParam<javax.faces.context.ExternalContext>
public boolean isConfigured(javax.faces.context.ExternalContext externalContext)
ConfigParam
isConfigured
in interface ConfigParam<javax.faces.context.ExternalContext>
Copyright © 2018 Liferay, Inc.. All rights reserved.