public class WebConfiguration extends Object
Modifier and Type | Class and Description |
---|---|
static class |
WebConfiguration.BooleanWebContextInitParameter
An
enum of all boolean context initalization parameters
recognized by the implementation. |
static class |
WebConfiguration.DisableUnicodeEscaping
An
enum of all possible values for the disableUnicodeEscaping
configuration parameter. |
static class |
WebConfiguration.WebContextInitParameter
An
enum of all non-boolean context initalization parameters
recognized by the implementation. |
static class |
WebConfiguration.WebEnvironmentEntry
An
enum of all environment entries (specified in the
web.xml) recognized by the implemenetation. |
Modifier and Type | Field and Description |
---|---|
static String |
META_INF_CONTRACTS_DIR |
public static final String META_INF_CONTRACTS_DIR
public static WebConfiguration getInstance()
getInstance(javax.faces.context.ExternalContext)
.null
if no FacesContext is available.public static WebConfiguration getInstance(ExternalContext extContext)
extContext
- the ExternalContext for this requestpublic static WebConfiguration getInstance(javax.servlet.ServletContext servletContext)
servletContext
- the ServletContextnull
if no WebConfiguration could be locatedpublic static WebConfiguration getInstanceWithoutCreating(javax.servlet.ServletContext servletContext)
public javax.servlet.ServletContext getServletContext()
ServletContext
originally used to construct
this WebConfiguration instancepublic boolean isHasFlows()
public void setHasFlows(boolean hasFlows)
public boolean isOptionEnabled(WebConfiguration.BooleanWebContextInitParameter param)
param
- the parameter of interestpublic String getOptionValue(WebConfiguration.WebContextInitParameter param)
param
- the parameter of interestpublic void setOptionValue(WebConfiguration.WebContextInitParameter param, String value)
public void setOptionEnabled(WebConfiguration.BooleanWebContextInitParameter param, boolean value)
public FaceletsConfiguration getFaceletsConfiguration()
public Map<String,String> getFacesConfigOptionValue(WebConfiguration.WebContextInitParameter param, boolean create)
public Map<String,String> getFacesConfigOptionValue(WebConfiguration.WebContextInitParameter param)
public String[] getOptionValue(WebConfiguration.WebContextInitParameter param, String sep)
public String getEnvironmentEntry(WebConfiguration.WebEnvironmentEntry entry)
entry
- the env-entry of interestpublic boolean isSet(WebConfiguration.WebContextInitParameter param)
param
- the init parameter of interesttrue
if the parameter was explicitly set,
otherwise, false
public boolean isSet(WebConfiguration.BooleanWebContextInitParameter param)
param
- the init parameter of interesttrue
if the parameter was explicitly set,
otherwise, false
public String getServletContextName()
public void overrideContextInitParameter(WebConfiguration.BooleanWebContextInitParameter param, boolean value)
public String[] getConfiguredExtensions()
public void overrideContextInitParameter(WebConfiguration.WebContextInitParameter param, String value)
public void doPostBringupActions()
public boolean canProcessJndiEntries()
Comments to: faces-dev@eclipse.org.
Copyright © 2019 Eclipse Foundation. All rights reserved.
Use is subject to license terms.