java.lang.Object
com.sun.faces.config.WebConfiguration
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumAnenumof all boolean context initalization parameters recognized by the implementation.static enumAnenumof all possible values for thedisableUnicodeEscapingconfiguration parameter.static enumAnenumof all non-boolean context initalization parameters recognized by the implementation.static enumAnenumof all environment entries (specified in the web.xml) recognized by the implemenetation. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidObtain the value of the specified env-entrygetFacesConfigOptionValue(WebConfiguration.WebContextInitParameter param, boolean create) static WebConfigurationReturn the WebConfiguration instance for this application passing the result of FacesContext.getCurrentInstance().getExternalContext() togetInstance(jakarta.faces.context.ExternalContext).static WebConfigurationgetInstance(ExternalContext extContext) Return the WebConfiguration instance for this application.static WebConfigurationgetInstance(ServletContext servletContext) Return the WebConfiguration instance for this application.static WebConfigurationgetInstanceWithoutCreating(ServletContext servletContext) Obtain the value of the specified parameterString[]booleanbooleanObtain the value of the specified boolean parameterbooleanbooleanvoidoverrideContextInitParameter(WebConfiguration.BooleanWebContextInitParameter param, boolean value) voidvoidsetHasFlows(boolean hasFlows) voidsetOptionEnabled(WebConfiguration.BooleanWebContextInitParameter param, boolean value) voidsetOptionValue(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
nullif 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
nullif no WebConfiguration could be located
-
getInstanceWithoutCreating
-
getServletContext
- Returns:
- The
ServletContextoriginally 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:
trueif the parameter was explicitly set, otherwise,false
-
isSet
- Parameters:
param- the init parameter of interest- Returns:
trueif 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
-