Package de.ipb_halle.molecularfaces.util
Interface WebXml
- All Known Implementing Classes:
WebXmlImpl
public interface WebXml
This interface offers methods to obtain information from web.xml.
-
Method Summary
Modifier and TypeMethodDescriptiongetContextParam(String paramName, jakarta.faces.context.FacesContext context, String defaultValue) Obtains theparam-valuefor thecontext-paramgiven byparam-namevia the givenFacesContextinstance.default StringgetContextParam(String paramName, String defaultValue) Obtains theparam-valuefor thecontext-paramgiven byparam-namevia the currentFacesContextinstance.default booleanisContextParamTrue(String paramName) Parses theparam-valuefor thecontext-paramgiven byparam-namevia the currentFacesContextinstance and returnstrueif theparam-valueis equal, ignoring case, to the string "true".default booleanisContextParamTrue(String paramName, jakarta.faces.context.FacesContext context) Parses theparam-valuefor thecontext-paramgiven byparam-namevia the givenFacesContextinstance and returnstrueif theparam-valueis equal, ignoring case, to the string "true".
-
Method Details
-
getContextParam
String getContextParam(String paramName, jakarta.faces.context.FacesContext context, String defaultValue) Obtains theparam-valuefor thecontext-paramgiven byparam-namevia the givenFacesContextinstance.- Parameters:
paramName-param-nameof thecontext-paramelement in web.xmlcontext-FacesContextinstancedefaultValue- default value to return if thecontext-paramdoes not exist- Returns:
param-valueordefaultValue
-
getContextParam
Obtains theparam-valuefor thecontext-paramgiven byparam-namevia the currentFacesContextinstance.- Parameters:
paramName-param-nameof thecontext-paramelement in web.xmldefaultValue- default value to return if thecontext-paramdoes not exist- Returns:
param-valueordefaultValue
-
isContextParamTrue
Parses theparam-valuefor thecontext-paramgiven byparam-namevia the givenFacesContextinstance and returnstrueif theparam-valueis equal, ignoring case, to the string "true".- Parameters:
paramName-param-nameof thecontext-paramelement in web.xmlcontext-FacesContextinstance- Returns:
trueif the context-param's value is true
-
isContextParamTrue
Parses theparam-valuefor thecontext-paramgiven byparam-namevia the currentFacesContextinstance and returnstrueif theparam-valueis equal, ignoring case, to the string "true".- Parameters:
paramName-param-nameof thecontext-paramelement in web.xml- Returns:
trueif the context-param's value is true
-