|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.faces.config.WebConfiguration
public class WebConfiguration
Class Documentation
| Nested Class Summary | |
|---|---|
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. |
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
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 request
public static WebConfiguration getInstance(javax.servlet.ServletContext servletContext)
servletContext - the ServletContext
null
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 interest
public java.lang.String getContextInitParameter(WebConfiguration.WebContextInitParameter param)
param - the parameter of interest
public java.lang.String getEnvironmentEntry(WebConfiguration.WebEnvironmentEntry entry)
entry - the env-entry of interest
public java.lang.String getServletContextName()
public void overrideContextInitParameter(WebConfiguration.BooleanWebContextInitParameter param)
public void overrideContextInitParameter(WebConfiguration.WebContextInitParameter param)
public void overrideEnvEntry(WebConfiguration.WebEnvironmentEntry entry)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||