public class WebConfiguration
extends java.lang.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.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 implmenetation. |
Modifier and Type | Method and Description |
---|---|
boolean |
getBooleanContextInitParameter(WebConfiguration.BooleanWebContextInitParameter param)
Obtain the value of the specified boolean parameter
|
java.lang.String |
getContextInitParameter(WebConfiguration.WebContextInitParameter param)
Obtain the value of the specified parameter
|
java.lang.String |
getEnvironmentEntry(WebConfiguration.WebEnvironmentEntry entry)
Obtain the value of the specified env-entry
|
static WebConfiguration |
getInstance()
Return the WebConfiguration instance for this application passing
the result of FacesContext.getCurrentInstance().getExternalContext()
to
getInstance(javax.faces.context.ExternalContext) . |
static WebConfiguration |
getInstance(javax.faces.context.ExternalContext extContext)
Return the WebConfiguration instance for this application.
|
static WebConfiguration |
getInstance(javax.servlet.ServletContext servletContext)
Return the WebConfiguration instance for this application.
|
javax.servlet.ServletContext |
getServletContext() |
java.lang.String |
getServletContextName() |
void |
overrideContextInitParameter(WebConfiguration.BooleanWebContextInitParameter param) |
void |
overrideContextInitParameter(WebConfiguration.WebContextInitParameter param) |
void |
overrideEnvEntry(WebConfiguration.WebEnvironmentEntry entry) |
public static WebConfiguration getInstance()
getInstance(javax.faces.context.ExternalContext)
.null
if no FacesContext is available.public static WebConfiguration getInstance(javax.faces.context.ExternalContext extContext)
extContext
- the ExternalContext for this requestpublic static WebConfiguration getInstance(javax.servlet.ServletContext servletContext)
servletContext
- the ServletContextnull
if no WebConfiguration could be locatedpublic javax.servlet.ServletContext getServletContext()
ServletContext
originally used to construct
this WebConfiguration instancepublic boolean getBooleanContextInitParameter(WebConfiguration.BooleanWebContextInitParameter param)
param
- the parameter of interestpublic java.lang.String getContextInitParameter(WebConfiguration.WebContextInitParameter param)
param
- the parameter of interestpublic java.lang.String getEnvironmentEntry(WebConfiguration.WebEnvironmentEntry entry)
entry
- the env-entry of interestpublic java.lang.String getServletContextName()
public void overrideContextInitParameter(WebConfiguration.BooleanWebContextInitParameter param)
public void overrideContextInitParameter(WebConfiguration.WebContextInitParameter param)
public void overrideEnvEntry(WebConfiguration.WebEnvironmentEntry entry)
Copyright ? 2002-2006 Sun Microsystems, Inc. All Rights Reserved.