public enum WebConfigParam extends Enum<WebConfigParam> implements ConfigParam<javax.faces.context.ExternalContext>
| Enum Constant and Description |
|---|
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 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()
ConfigParamgetAlternateName in interface ConfigParam<javax.faces.context.ExternalContext>public boolean getBooleanValue(javax.faces.context.ExternalContext externalContext)
ConfigParamConfigParam.getDefaultBooleanValue() is returned.getBooleanValue in interface ConfigParam<javax.faces.context.ExternalContext>public String getConfiguredValue(javax.faces.context.ExternalContext externalContext)
ConfigParamgetConfiguredValue in interface ConfigParam<javax.faces.context.ExternalContext>public boolean getDefaultBooleanValue()
ConfigParamgetDefaultBooleanValue in interface ConfigParam<javax.faces.context.ExternalContext>public int getDefaultIntegerValue()
ConfigParamgetDefaultIntegerValue in interface ConfigParam<javax.faces.context.ExternalContext>public long getDefaultLongValue()
ConfigParamgetDefaultLongValue in interface ConfigParam<javax.faces.context.ExternalContext>public String getDefaultStringValue()
ConfigParamgetDefaultStringValue in interface ConfigParam<javax.faces.context.ExternalContext>public int getIntegerValue(javax.faces.context.ExternalContext externalContext)
ConfigParamConfigParam.getDefaultIntegerValue() is returned.getIntegerValue in interface ConfigParam<javax.faces.context.ExternalContext>public long getLongValue(javax.faces.context.ExternalContext externalContext)
ConfigParamConfigParam.getDefaultLongValue() is returned.getLongValue in interface ConfigParam<javax.faces.context.ExternalContext>public String getName()
ConfigParamgetName in interface ConfigParam<javax.faces.context.ExternalContext>public String getStringValue(javax.faces.context.ExternalContext externalContext)
ConfigParamConfigParam.getDefaultStringValue() is returned.getStringValue in interface ConfigParam<javax.faces.context.ExternalContext>public boolean isConfigured(javax.faces.context.ExternalContext externalContext)
ConfigParamisConfigured in interface ConfigParam<javax.faces.context.ExternalContext>Copyright © 2016 Liferay, Inc.. All rights reserved.