Package com.sun.faces.config
Class WebConfiguration
java.lang.Object
com.sun.faces.config.WebConfiguration
public class WebConfiguration extends Object
Class Documentation
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWebConfiguration.BooleanWebContextInitParameterAnenumof all boolean context initalization parameters recognized by the implementation.static classWebConfiguration.DisableUnicodeEscapingAnenumof all possible values for thedisableUnicodeEscapingconfiguration parameter.static classWebConfiguration.WebContextInitParameterAnenumof all non-boolean context initalization parameters recognized by the implementation.static classWebConfiguration.WebEnvironmentEntryAnenumof all environment entries (specified in the web.xml) recognized by the implemenetation. -
Field Summary
Fields Modifier and Type Field Description static StringMETA_INF_CONTRACTS_DIR -
Method Summary
-
Field Details
-
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
public static WebConfiguration getInstanceWithoutCreating(jakarta.servlet.ServletContext servletContext) -
getServletContext
public jakarta.servlet.ServletContext getServletContext()- Returns:
- The
ServletContextoriginally used to construct this WebConfiguration instance
-
isHasFlows
public boolean isHasFlows() -
setHasFlows
public void setHasFlows(boolean hasFlows) -
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
public Map<String,String> getFacesConfigOptionValue(WebConfiguration.WebContextInitParameter param) -
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
-
getServletContextName
- Returns:
- the name of this application
-
overrideContextInitParameter
public void overrideContextInitParameter(WebConfiguration.BooleanWebContextInitParameter param, boolean value) -
getConfiguredExtensions
To include the facelets suffix into the supported suffixes.- Returns:
- merged suffixes including both default suffixes and the facelet suffixes.
-
overrideContextInitParameter
public void overrideContextInitParameter(WebConfiguration.WebContextInitParameter param, String value) -
doPostBringupActions
public void doPostBringupActions() -
canProcessJndiEntries
public boolean canProcessJndiEntries()
-