java.lang.Object
com.sun.faces.config.WebConfiguration
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Anenum
of all boolean context initalization parameters recognized by the implementation.static enum
Anenum
of all possible values for thedisableUnicodeEscaping
configuration parameter.static enum
Anenum
of all non-boolean context initalization parameters recognized by the implementation.static enum
Anenum
of all environment entries (specified in the web.xml) recognized by the implemenetation. -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
void
Obtain the value of the specified env-entrygetFacesConfigOptionValue
(WebConfiguration.WebContextInitParameter param, boolean create) static WebConfiguration
Return the WebConfiguration instance for this application passing the result of FacesContext.getCurrentInstance().getExternalContext() togetInstance(jakarta.faces.context.ExternalContext)
.static WebConfiguration
getInstance
(ExternalContext extContext) Return the WebConfiguration instance for this application.static WebConfiguration
getInstance
(ServletContext servletContext) Return the WebConfiguration instance for this application.static WebConfiguration
getInstanceWithoutCreating
(ServletContext servletContext) Obtain the value of the specified parameterString[]
boolean
boolean
Obtain the value of the specified boolean parameterboolean
boolean
void
overrideContextInitParameter
(WebConfiguration.BooleanWebContextInitParameter param, boolean value) void
void
setHasFlows
(boolean hasFlows) void
setOptionEnabled
(WebConfiguration.BooleanWebContextInitParameter param, boolean value) void
setOptionValue
(WebConfiguration.WebContextInitParameter param, String value) <T> Iterable
<T> toIterable
(Iterator<T> iterator)
-
Field Details
-
META_INF_CONTRACTS_DIR
-
-
Method Details
-
getInstance
Return the WebConfiguration instance for this application passing the result of FacesContext.getCurrentInstance().getExternalContext() togetInstance(jakarta.faces.context.ExternalContext)
.- Returns:
- the WebConfiguration for this application or
null
if no FacesContext is available.
-
getInstance
Return the WebConfiguration instance for this application.- Parameters:
extContext
- the ExternalContext for this request- Returns:
- the WebConfiguration for this application
-
getInstance
Return the WebConfiguration instance for this application.- Parameters:
servletContext
- the ServletContext- Returns:
- the WebConfiguration for this application or
null
if no WebConfiguration could be located
-
getInstanceWithoutCreating
-
getServletContext
- Returns:
- The
ServletContext
originally used to construct this WebConfiguration instance
-
isHasFlows
public boolean isHasFlows() -
setHasFlows
public void setHasFlows(boolean hasFlows) -
getSpecificationVersion
-
isOptionEnabled
Obtain the value of the specified boolean parameter- Parameters:
param
- the parameter of interest- Returns:
- the value of the specified boolean parameter
-
getOptionValue
Obtain the value of the specified parameter- Parameters:
param
- the parameter of interest- Returns:
- the value of the specified parameter
-
setOptionValue
-
setOptionEnabled
-
getFaceletsConfiguration
-
getFacesConfigOptionValue
public Map<String,String> getFacesConfigOptionValue(WebConfiguration.WebContextInitParameter param, boolean create) -
getFacesConfigOptionValue
-
getOptionValue
-
getEnvironmentEntry
Obtain the value of the specified env-entry- Parameters:
entry
- the env-entry of interest- Returns:
- the value of the specified env-entry
-
isSet
- Parameters:
param
- the init parameter of interest- Returns:
true
if the parameter was explicitly set, otherwise,false
-
isSet
- Parameters:
param
- the init parameter of interest- Returns:
true
if the parameter was explicitly set, otherwise,false
-
overrideContextInitParameter
public void overrideContextInitParameter(WebConfiguration.BooleanWebContextInitParameter param, boolean value) -
getConfiguredExtensions
-
overrideContextInitParameter
public void overrideContextInitParameter(WebConfiguration.WebContextInitParameter param, String value) -
doPostBringupActions
public void doPostBringupActions() -
canProcessJndiEntries
public boolean canProcessJndiEntries() -
toIterable
-