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 class
WebConfiguration.BooleanWebContextInitParameter
Anenum
of all boolean context initalization parameters recognized by the implementation.static class
WebConfiguration.DisableUnicodeEscaping
Anenum
of all possible values for thedisableUnicodeEscaping
configuration parameter.static class
WebConfiguration.WebContextInitParameter
Anenum
of all non-boolean context initalization parameters recognized by the implementation.static class
WebConfiguration.WebEnvironmentEntry
Anenum
of all environment entries (specified in the web.xml) recognized by the implemenetation. -
Field Summary
Fields Modifier and Type Field Description static String
META_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
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
public static WebConfiguration getInstanceWithoutCreating(jakarta.servlet.ServletContext servletContext) -
getServletContext
public jakarta.servlet.ServletContext getServletContext()- Returns:
- The
ServletContext
originally 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:
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
-
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()
-